objective c - UIAlertView with defined dismiss time doesn't appear -


i wanted popup disappear after time (it jailbroken device, , popup appears when people press button), problem doesn't appear, tried doing normal alertview , worked :/

here code:

-(void)update  {  //do stuff  uialertview *alertview = [[uialertview alloc] initwithtitle:@"title"                message:@"message!"                  delegate:self               cancelbuttontitle:@""               otherbuttontitles:nil];   [alertview show];    [self performselector:@selector(dismissalertview:) withobject:alertview afterdelay:1.7f];    [alertview release];  }  -(void)dismissalertview:(uialertview *)alertview {     [alertview dismisswithclickedbuttonindex:0 animated:yes]; } 


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -