iphone - Why isn't UIAlertView Showing? -


Screen turns dark and freezes for some reasons, alert is not shown ... Can anyone help?

Thanks in advance!

 } Other {UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @ "Hello!" Message: @ "Hello!" Representative: cancel itselfTuttonite: @ "finished" other button titles: zero]; [Alerts show]; [Warning issued]; }    

You might be calling show with background code , Call it at the main thread like this:

  UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @ "Hello!" Message: @ "Hello!" Representative: cancel itselfTuttonite: @ "finished" other button titles: zero]; [Warning Exhibitor ChoosesMindThread: @Selector (Show) with object: Wait until zero: no]; [Warning issued];    

Comments