iPad - How can I make my UIActionSheet look like t

2019-05-26 13:39发布

问题:

The above UIActionSheet is thinner than the normal one. I took the screenshot from Safari when I try to bookmark some website.

Mine or the default UIActionSheet in iPad looks like the following. It is thicker than the one in Safari, especially the border.

How can I make my own UIActionSheet look like the one in Safari? Do I need to do any particular customisation or I can use some kinds of parameters for UIActionSheet?

thanks

回答1:

The instance method:

showFromBarButtonItem:animated:

Documentation:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIActionSheet_Class/Reference/Reference.html

On iPad, it will display the UIActionSheet inside a Popover.