In my app, i m posting some data to the server, in return expecting some acknowledgment msgs. Accordingly displaying the pop-up on UI for informing the user for success or Failure.
When i post the data for more than two times to server, i should get two pop-up but here i get three pop-ups. At very first pop - up appears & disappears then again pop appears, now t wait for user click after that other appears.
I am using simple code in loop..
Can anybody help me ....... 
When i post the data for more than two times to server, i should get two pop-up but here i get three pop-ups. At very first pop - up appears & disappears then again pop appears, now t wait for user click after that other appears.
I am using simple code in loop..
Code:
/*...........
if([nss_value isEqualToString:@"0"])
{ [self showAlert:@"Success" :nil]; }
else { [self showAlert:@"Failure" :nil]; }
................*/
-(void)showAlert:(NSString *)nss_title:(NSString *)nss_msg
{
NSLog(@"SHOW ALERT IS UPP");
UIAlertView *uialv_userConfirmation =[[UIAlertView alloc]initWithTitle:nss_title message:nss_msg delegate:self cancelButtonTitle:nil otherButtonTitles:@"Ok",nil];
[uialv_userConfirmation show];
[uialv_userConfirmation release];
uialv_userConfirmation=nil;
}
Last edited by a moderator: