我想将 QLPreVIewController 作为表单模型样式打开。
这是我的代码
-(void)openPdfFile{
QLPreviewController *previewer = [[QLPreviewController alloc] init];
[previewer setModalPresentationStyle:UIModalPresentationFormSheet];
[previewer setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
// Set data source
[previewer setDataSource:self];
[previewer setDelegate:self];
// Which item to preview
[previewer setHidesBottomBarWhenPushed:TRUE];
[[[[UIApplication sharedApplication]keyWindow]rootViewController]presentModalViewController:previewer animated:TRUE];
}
但它总是全屏显示
请帮忙