I am using Quicklook to show some PDF files, the user needs to just see the file and then click done. the default UI gives more options like the copy or print email. Also the UI shows arrows next to the done button that can navigate to other files available. Both of which I need removed ( hidden ). Now I browsed around and most posts talk about subclassing QLPreviewController, and customizing the new class. So I am doing this in the following manner :
@interface MyQLViewer : QLPreviewController <QLPreviewControllerDataSource, QLPreviewControllerDelegate> {
}
and in the .m file
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[self navigationItem] setRightBarButtonItem:nil];
}
now in my own project I have a MyQLViewer property that I [MyQLViewer alloc] init] in the viewdidload event of the xib.
This is not working. what am I missing?
Thanks.