Share via


UIDocumentViewForPreview 委托

定义

一个委托签名,用于获取负责呈现 UIDocumentInteractionController 预览的 UIView。

public delegate UIKit.UIView UIDocumentViewForPreview(UIDocumentInteractionController controller);
type UIDocumentViewForPreview = delegate of UIDocumentInteractionController -> UIView

参数

controller
UIDocumentInteractionController

调用方。

返回值

负责呈现预览的 UIView。

注解

用于在 UIDocumentInteractionController 中设置 ViewForPreview 挂钩。

适用于