Accessing UIPopoverController for UIActionSheet on iPad
Posted
by westsider
on Stack Overflow
See other posts from Stack Overflow
or by westsider
Published on 2010-05-10T22:51:27Z
Indexed on
2010/05/10
22:54 UTC
Read the original article
Hit count: 1019
On the iPad, one can show a UIActionSheet using -showFromBarButtonItem:animated:. This is convenient because it wraps a UIPopoverController around the action sheet and it points the popover's arrow to the UIBarButtonItem that is passed in.
However, this call adds the UIBarButtomItem's toolbar to the list of passthrough views - which isn't always desirable. And, without a pointer to the UIPopoverController, one can't add other views to the passthrough list.
Does anyone know of a sanctioned approach to getting a pointer to the popover controller?
Thanks in advance.
© Stack Overflow or respective owner