How to create a small popup in iOS?

I am looking for the simplest code to implement a small popup (NOT a fullscreen modal popup or warning). I just need to display some body text inside the popup and then exit it when I click. A good example is a popup in an EleMints application.

like this

+5
source share
3 answers

The UIPopoverController does this, but is limited only to the iPad. If you need it on the iPhone, just do a custom subclass of UIView. Then, when you want to show your popover, create an instance of the subclass and add it to your view, perhaps with some animation.

+6
source
+4

You can also use the following refrence link for the UIPopOver controller

1) WEPopOver Library 2) Pop-up Bubbles

+3
source

All Articles