0

我正在尝试实现以下 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; 
}
4

1 回答 1

1

view 参数是一个指向视图指针的指针。要设置它,您将使用以下语法:

*view = self.view;
于 2011-12-13T20:51:29.277 回答