我正在尝试实现以下 QLPreviewControllerDelegate 方法,该方法要求我在预览控制器之前返回显示我的预览项目的视图;这应该是 self.view 但是我收到以下编译错误:
Automatic Reference Counting Issue: Implicit conversion of an Objective-C pointer to 'UIView *__autoreleasing *' is disallowed with ARC
我该如何解决这个问题?
//Called when a Quick Look preview is about to be presented full screen or dismissed, to provide a zoom effect.
- (CGRect)previewController:(QLPreviewController *)controller frameForPreviewItem:(id <QLPreviewItem>)item inSourceView:(UIView **)view
{
// Set the source view
view = self.view;
// Set the Rectangle of the Icon
return self.view.bounds;
}