2013-12-12 52 views

回答

0

在創建一個AIR本機擴展,我需要爲我的自定義視圖控制器創建一個視圖窗口。

確保你正在做的:

#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函數調用中。

希望它給你一個起點,如果你還沒有得到它。