iphone - Dismissing UIAlertView programatically -



iphone - Dismissing UIAlertView programatically -

i have uialertview next delegate method:

- (void)alertview:(uialertview *)alertview willdismisswithbuttonindex:(nsinteger)buttonindex {

but have problem. in method, logic , perform lines of code take little amount of time. dismiss alertview before of this. want dismiss alert view @ top of method. way, when user taps button on alertview, app doesn't seem frozen sec while next lines of code executed.

either utilize delegate method -alertview:diddismisswithbuttonindex: instead—it gets called 1 time alert view’s been removed screen, @ to the lowest degree conceal lag app’s having—or, better, utilize background thread, e.g. -performselectorinbackground:withobject:, handle whatever processing need do.

iphone ios ipad uiviewcontroller uialertview

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -