![](/img/trans.png)
[英]How to add uigesturerecognizer to UIDocumentInteractionController Preview?
[英]How to change UIDocumentInteractionController preview screen?
我们是否需要更改UIDocumentInteractionController
预览屏幕? 是否可以更改UIDocumentInteractionController
的矩形? 我想在自定义视图中打开文档预览吗?
在创建AIR Native Extension时,我需要为自定义视图控制器创建一个视图窗口。
确保您正在做:
#import "MyCustomViewController.h"
在我的职能:
MyCustomViewController *myViewController;
id delegate = [[UIApplication sharedApplication] delegate];
UIWindow *win = [delegate window];
myViewController = [[MyCustomViewController alloc]init];
[win addSubview:myViewController.view];
[myViewController previewDocument: (parameters to method)];
return (_bridge FREObject)(myViewController);
实施的位置可能会有所不同,具体取决于您的结构。 由于我将其用作ANE,因此将其放入Context函数调用中。
希望它为您提供一个起点,如果您还没有得到的话。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.