I am using qlpreviewcontroller to show JPG,PNG,PDF and DOCS file. My question is how can I show file preview as in dropbox app? I also want to add navigation bara and toolbar on that. Help Required...
Asked
Active
Viewed 526 times
1 Answers
0
You have to use
self.navigationcontroller.navigationbar.hidden=NO; //For navigationbar
for Toolbar
NSArray* toolbarItems = [NSArray arrayWithObjects:
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd
target:self
action:@selector(your method name:)],
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSearch
target:self
action:@selector(your method name:)],
nil];
self.toolbarItems = toolbarItems;
self.navigationController.toolbarHidden = NO;

Dipak Narigara
- 1,796
- 16
- 18
-
I previewer = [[QLPreviewController alloc] init]; [previewer setDataSource:self]; [self.view addSubview:previewer.view]; I am using – Mayank Purwar Jun 28 '13 at 12:04
-
1previewer = [[QLPreviewController alloc] init]; [previewer setDataSource:self]; [self.view addSubview:previewer.view]; on this no touch no gtap gasture is working also I am not able to add toolbar – Mayank Purwar Jun 28 '13 at 12:12