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.
source
share