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.
Best Answer
You would need to adjust on orientation change.
I have found an alternative solution, that works perfectly for me.
Stick to
In your @interface add
also add
also add
So you have reference to your actionsheet from anywhere in your implementation.
in your implementation
in your actionsheet delegate implement
and don't forget to release popoverActionsheet in
I trust that this will do.