qlpreviewcontroller

Issues trying to preview big files with QLPreviewController

廉价感情. 提交于 2019-12-02 02:27:52
I'm having issues trying to preview big files in my iPad app. In the app we use UIDocumentInteractionController. When we try to open big files (> 100 MB) the UIDocumentInteractionController only shows a grey screen with the name and size of the file. To narrow the problem we have done a simple app that only tries to preview a file using QLPreviewController and we find the same problem. The problem seems related with the memory usage. Because the biggest size of the file you can preview changes regarding the iPad model and the amount of apps in the background. Trying to preview the files with

How to hide share button in QLPreviewController using swift?

走远了吗. 提交于 2019-12-01 08:11:30
I'm using the below code to use QLPreviewcontroller to show some documents in my app, let ql = QLPreviewController() ql.dataSource = self //ql.navigationItem.rightBarButtonItems = nil ql.navigationItem.rightBarButtonItem = nil presentViewController(ql, animated: true, completion: nil) I don't want the share button in the right top of QLPreviewcontroller. I'd tried setting rightBarButtonItem to nil, but it's not working. How can I hide that? None of those solutions worked for me in Swift 3 for iOS 10 . The issue is that the Share button is created after viewDidAppear method. Here are the steps

Quicklook/QLPreviewController delegate methods are not calling in iOS 10 Xcode 8

大兔子大兔子 提交于 2019-11-30 20:16:50
Currently I am testing my current version in iOS10. I am using Xcode 8 beta 6 for testing. Here Quicklook/QLPreviewController delegate methods are not calling. This code set had been worked with XCode 7 and iOS 9.3 versions. I checked this issue in Apple Developer forum. But could not find a answer. Anyone have fixed this issue? (I am using Objective-C) How to use Quicklook/QLPreviewController in XCode 8 ( iOS 10 )? //----------------- SOLUTION for iOS 10 ( previewer as a subview) ------------------- This issue is occurred when you add the the previewer as a subview. Then we are using below

Quicklook/QLPreviewController delegate methods are not calling in iOS 10 Xcode 8

懵懂的女人 提交于 2019-11-30 03:28:02
问题 Currently I am testing my current version in iOS10. I am using Xcode 8 beta 6 for testing. Here Quicklook/QLPreviewController delegate methods are not calling. This code set had been worked with XCode 7 and iOS 9.3 versions. I checked this issue in Apple Developer forum. But could not find a answer. Anyone have fixed this issue? (I am using Objective-C) How to use Quicklook/QLPreviewController in XCode 8 ( iOS 10 )? //----------------- SOLUTION for iOS 10 ( previewer as a subview) -----------

How to add QLPreviewController as Subview in objective C

 ̄綄美尐妖づ 提交于 2019-11-30 02:09:00
Is it possible to add QLPreviewController to UIView as sub view. I tried like this [self.view addSubview:previewViewController.view] I also called reloadData [previewViewController reloadData]; I check with this URL Adding QLPreviewController as subview doesn't load PDF . But I did not understand what is self.pdfPreviewView Please guide me how I can add QLPreviewController as sub view.. Yes its possible, see the code below: QLPreviewController* preview = [[QLPreviewController alloc] init]; preview.dataSource = self; preview.delegate = self; [self addChildViewController:preview];//*view

QLPreviewController's view

孤街浪徒 提交于 2019-11-29 22:51:58
问题 I just trying to get to QLPreviewController.view. Indeed, I want to catch a tap event on its view to show/hide toolbar etc. I am trying: QLPreviewController* qlpc = [QLPreviewController new]; qlpc.delegate = self; qlpc.dataSource = self; qlpc.currentPreviewItemIndex=qlIndex; [navigator pushViewController:qlpc animated:YES]; qlpc.title = [path lastPathComponent]; [qlpc setToolbarItems:[NSArray arrayWithObjects:self.dirBrowserButton,self.space, self.editButton, self.btnSend, nil] animated:YES];

How to Disable QLPreviewController print Button

淺唱寂寞╮ 提交于 2019-11-29 04:07:53
Can anyone tell me how to remove the QLPreviewController print button? Also would like to disable cut/paste/copy. UPDATE: This no longer works in iOS 6. Quick Look runs in another process using XPC. See [here][3] for more details. I don't foresee any way to customize QLPreviewController. The following answer remains for anyone interested for pre-iOS 6. If you want to simply remove the action button you need to subclass QLPreviewController . Then in -viewWillAppear: you need to remove the action button by calling [[self navigationItem] setRightBarButtonItem:nil]; This will also remove the

How to add QLPreviewController as Subview in objective C

混江龙づ霸主 提交于 2019-11-28 23:06:53
问题 Is it possible to add QLPreviewController to UIView as sub view. I tried like this [self.view addSubview:previewViewController.view] I also called reloadData [previewViewController reloadData]; I check with this URL Adding QLPreviewController as subview doesn't load PDF . But I did not understand what is self.pdfPreviewView Please guide me how I can add QLPreviewController as sub view.. 回答1: Yes its possible, see the code below: QLPreviewController* preview = [[QLPreviewController alloc] init

Quicklook/QLPreviewController shows a blank page instead of pdf on ios 8 but works fine on iOS7

ε祈祈猫儿з 提交于 2019-11-28 19:18:16
问题 I am trying to preview pdf file in QLPreviewController and using the below code. It works fine on iOS7 and for other type of files (JPG/PNG) on iOS8 as well but when I try to open pdf it shows blank page instead content on iOS8 . Its weird that it still shows name of pdf in title view. Code: QLPreviewController *previewer = [[QLPreviewController alloc] init]; previewer.dataSource = self; previewer.currentPreviewItemIndex = 0; [self presentViewController:previewer animated:NO completion:nil];

iOS 6 UIGestures (Tap) stops working with QLPreviewController

有些话、适合烂在心里 提交于 2019-11-28 10:27:05
Currently I'm using a QLPreviewController in a navigation controller. (pushViewController) To hide the navigationbar I use a UITapGestureRecognizer. The user can show/hide the navigation bar by a single touch (tap). This worked well in iOS5 - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapped:)]; [tapRecognizer setNumberOfTapsRequired:1]; [tapRecognizer setDelegate:self]; [[self view] addGestureRecognizer:tapRecognizer]; [tapRecognizer release]; } - (BOOL