当我尝试实例化 PDFView 时,我崩溃了:
*** 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[PDFViewController initWithCoder:]:无法识别的选择器发送到实例 0x6000038103a0”
我不明白的是多个数据源在线初始化PDFView
是这样的。我究竟做错了什么?
- https://www.andrewhoyer.com/category/ios-dev/
- https://www.generacodice.com/en/articolo/411319/printing-off-screen-pdfviews
- 如何使用适用于 iPad 的 PDFKit 加载 pdf
@interface PDFViewController ()
@end
@implementation PDFViewController
PDFView *pdfView;
- (void)viewDidLoad {
[super viewDidLoad];
// Commenting this out causes this to not crash
PDFView *pdfView = [[PDFView alloc] initWithFrame:CGRectMake(0, 0, 500, 500)];
}
@end