Present the picker in a popover that is anchored to the specified bar button item.
- iOS 8.0+
The bar button item to use as the anchor for the popover.
YESto animate the display of the picker or
NOto display it without animations.
A block to execute when the picker is dismissed. Use this block to receive information about the selected printer or information about any errors that occurred.
YES if the picker was displayed or
NO if the picker was already visible.
This method presents the picker from a popover or from the view controller you specify using your delegate object. If you provide a delegate object and that object implements the
printer method, UIKit presents the picker using the view controller you specify. If you do not provide a delegate, or your delegate object does not implement the
printer method, UIKit presents the picker using a popover attached the bar button you specified in the
After presenting the picker, the picker interface runs until the user or your app dismisses it. The picker interface provides ways for the user to cancel printing directly, all of which dismiss the picker. You can also dismiss the printer picker programmatically by calling the
Calling this method while the picker is currently displayed in a popover dismisses the popover.