Hello,
I've the impression that QLPreviewController is leaking on iOS 10 (release version).
I've compiled the Apple DocInteraction sample, which push a QLPreviewController on a UINavigationController :
QLPreviewController *previewController = [[QLPreviewController alloc] init];
previewController.dataSource = self;
previewController.delegate = self;
[[self navigationController] pushViewController:previewController animated:YES];
When I pop the previewController, I can see with the new Xcode 8 object browser that there is still a leaving instance of a QLPreviewController.
If I subclass QLPreviewController:
@interface MYViewController : QLPreviewController
@end
@implementation MYViewController
- (void)dealloc {
}
@end
dealloc method is never called when the view controller is popped. With the same code on a iOS 8.1 simulator, dealloc is always called.
Can somebody confirms my investigation, or has any idea how to patch this leak ?
Thanks,
Jice