2011-10-05 5 views
0

QLPreviewControllerDelegate의 다음 메서드를 구현하려고하는데 메서드에서 미리보기 컨트롤러 앞에 내 미리보기 항목을 표시하는 뷰를 반환해야합니다. 이 self.view하지만 다음 컴파일 오류가 발생합니다.Quick Look 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; 
} 

답변

0

view 매개 변수는 뷰에 대한 포인터의 포인터입니다. 설정하려면 다음 구문을 사용하십시오.

*view = self.view; 
관련 문제