QLPreviewControllerDelegate doesn't called
As we all know,
QLPreviewController *_previewController;
_previewController.delegate = self;
then implement QLPreviewControllerDelegate in current class.Those methods
will be called such as
-(BOOL) previewController:(QLPreviewController *)controller
shouldOpenURL:(NSURL *)url
forPreviewItem:(id<QLPreviewItem>)item
{
NSLog(@"preview controller should open url");
return YES;
}
but no log information and doesn't break if I set a breakpoint.
What cause the problem?
No comments:
Post a Comment