2

alt text

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.

alt text

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

2
  • Use showFromBarButtonItem method as Evan says but also set title and cancel button to nil.
    – user467105
    Oct 25, 2010 at 17:19
  • @aBitObvious, i don't mean where this UIActionSheet shows, I mean how can I make it thinner like the safari one, i mean the border thinner
    – Jack
    Oct 25, 2010 at 19:10

1 Answer 1

6

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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.