我正在使用qlpreviewcontroller来显示JPG,PNG,PDF和DOCS文件。我的问题是如何在Dropbox应用中显示文件预览?我还想在其上添加导航栏和工具栏。需要帮助......
答案 0 :(得分: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;