편집

다음을 통해 공유


UIPrinterPickerController.PresentFromBarButtonItem Method

Definition

Shows a UIPrinterPickerController from this app as a popover that is anchored to a UIBarButtonItem item, with or without animation, depending on animated, and code to run on completion, as a UIPrinterPickerCompletionHandler object, and then returns whether the object was displayed.

[Foundation.Export("presentFromBarButtonItem:animated:completionHandler:")]
public virtual bool PresentFromBarButtonItem (UIKit.UIBarButtonItem item, bool animated, UIKit.UIPrinterPickerCompletionHandler completion);
abstract member PresentFromBarButtonItem : UIKit.UIBarButtonItem * bool * UIKit.UIPrinterPickerCompletionHandler -> bool
override this.PresentFromBarButtonItem : UIKit.UIBarButtonItem * bool * UIKit.UIPrinterPickerCompletionHandler -> bool

Parameters

item
UIBarButtonItem

The bar button item to which to anchor the popover.

animated
Boolean

Whether to animate the display of the picker.

completion
UIPrinterPickerCompletionHandler

A handler to run after the picker is dismissed.

Returns

Attributes

Applies to