Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad UIPopoverController with buttons, same as Contacts App

I would like to create a PopoverController containing buttons, like this one:

enter image description here

I can create a UIViewController containing two buttons, but they won't be identical to those shown on screenshot above

How can I achieve this ?

Thanks

like image 753
ingham Avatar asked Feb 12 '26 11:02

ingham


1 Answers

That is a UIActionSheet.

On the iPad the UIActionSheet class presents itself as a popover view when given a particular rect to present from. Without the given rect, it will display in the centre of the screen similar to a UIAlertView.

like image 132
Jasarien Avatar answered Feb 15 '26 05:02

Jasarien