我正在尝试在UIVIewcontroller上显示QLpreviewcontroller。
-(void)showPreview{ if(!_previewController){ _previewController = [[QLPreviewController alloc] init]; _previewController.dataSource = self; _previewController.delegate = self; } // There will always be one item here _previewController.currentPreviewItemIndex = 0; [_previewController setModalTransitionStyle:UIModalTransitionStyleCoverVertical]; [self presentViewController:_previewController animated:YES completion:nil]; }
显示previecontroller,但转换不是动画。它只是没有任何动画出现。