qlpreviewcontroller

Custom navigationItem button with QLPreviewController in iOS6

一个人想着一个人 提交于 2019-11-28 08:34:27
my goal is to use QLPreviewController in my iPad application for iOS6, using my custom Action item button in the top toolbar. I had solution until iOS5.1. I used a class that extends QLPreviewController and during component lifecycle I did something like [[self navigationItem] setRightBarButtonItems:[NSArray arrayWithObject:[self buildCustomButton]]]; With iOS6 this trick doesn't work more, and now it seems impossible change navigationItem configuration. I think that introduction of UIActivity and Social Framework could be involved and maybe it's no more effective to work on navigationItem,

QLPreviewController remove or add UIBarButtonItems

丶灬走出姿态 提交于 2019-11-27 08:05:00
I have seen this kind of question a lot on the internet but it seems no one really knows the answer? I am using QLPreviewController for displaying PDF documents. I first used a UIWebView but I was recommended to use QLPreviewController instead for performance reasons with bigger documents. what I want is 4 custom UIBarButtonItem's in the top right (so where the print button is). I managed to get a custom toolbar at the bottom, but that's not really what I want. Considering that it is not possible to add custom button at the place of the print button, I still want to remove the printbutton and

Custom navigationItem button with QLPreviewController in iOS6

让人想犯罪 __ 提交于 2019-11-27 02:18:17
问题 my goal is to use QLPreviewController in my iPad application for iOS6, using my custom Action item button in the top toolbar. I had solution until iOS5.1. I used a class that extends QLPreviewController and during component lifecycle I did something like [[self navigationItem] setRightBarButtonItems:[NSArray arrayWithObject:[self buildCustomButton]]]; With iOS6 this trick doesn't work more, and now it seems impossible change navigationItem configuration. I think that introduction of

QLPreviewController remove or add UIBarButtonItems

大憨熊 提交于 2019-11-26 14:03:24
问题 I have seen this kind of question a lot on the internet but it seems no one really knows the answer? I am using QLPreviewController for displaying PDF documents. I first used a UIWebView but I was recommended to use QLPreviewController instead for performance reasons with bigger documents. what I want is 4 custom UIBarButtonItem's in the top right (so where the print button is). I managed to get a custom toolbar at the bottom, but that's not really what I want. Considering that it is not