Search code examples
iosuser-interfaceuiactionsheet

What class is best to use as a popup in an iPhone?


I've heard that UIActionSheet is best to use as a popup for the iPhone, but I do not know whether apple will like the following use of the class:

I do not wish to present the user with a choice, but rather notify them when the app looses connectivity. I would love to use a native apple class... is there anything better than the UIActionSheet?

Am I allowed to use the UIActionSheet in this way?


Solution

  • I believe what you're looking for is UIAlertView. It's usually used to provide informational updates to the user, or in your case, connectivity updates, and if need be provide options

    UIAlertView Tutorial