0
我想實現QLPreviewControllerDelegate的下列方法,並且該方法要求我在預覽控制器之前返回顯示我的預覽項目的視圖;這應該是self.view但是我收到以下編譯錯誤:實現快速查看QLPreviewController動畫
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;
}