我正在尝试实现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;
}
答案 0 :(得分:1)
view参数是指向视图的指针。要设置它,您将使用以下语法:
*view = self.view;