qlpreviewcontroller

QLPreviewPanel in tableview with issue: “has no controller”

我怕爱的太早我们不能终老 提交于 2019-12-24 04:51:59
问题 I would like to display the urls from a table view in a QLPreviewPanel but i got this error: [QL] QLError(): -[QLPreviewPanel reloadData] called while the panel has no controller - Fix this or this will raise soon. My table controller already conform to this two protocols : QLPreviewPanelDataSource, QLPreviewPanelDelegate. How can i set the controller of [QLPreviewPanel sharedPreviewPanel] as my table controller? - (void)didPressSpacebarForTableView:(NSTableView *)tableView { NSLog(@"Spacebar

QLPreviewPanel in tableview with issue: “has no controller”

半城伤御伤魂 提交于 2019-12-24 04:51:52
问题 I would like to display the urls from a table view in a QLPreviewPanel but i got this error: [QL] QLError(): -[QLPreviewPanel reloadData] called while the panel has no controller - Fix this or this will raise soon. My table controller already conform to this two protocols : QLPreviewPanelDataSource, QLPreviewPanelDelegate. How can i set the controller of [QLPreviewPanel sharedPreviewPanel] as my table controller? - (void)didPressSpacebarForTableView:(NSTableView *)tableView { NSLog(@"Spacebar

Issues trying to preview big files with QLPreviewController

寵の児 提交于 2019-12-20 03:29:22
问题 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

Issues with email attachment, PDF and CSV

我是研究僧i 提交于 2019-12-20 03:01:14
问题 I'm working with PDF generation,it generated the PDF, viewed using QLPreviewController , all worked fine except mail forwarding, I have two attachments of type .pdf and .csv. I have the following issues while emailing. sometimes no attachments while emailing pdf size will be very huge when pdf contains image(10 mb for one page pdf, if it contains image) Problem is when testing in device,in simulator it all works fine..., I come to know some exporting or importing UTI associated issues here

How to hide share button in QLPreviewController using swift?

牧云@^-^@ 提交于 2019-12-19 09:57:54
问题 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? 回答1: None of those solutions worked for me in Swift

iOS 6 UIGestures (Tap) stops working with QLPreviewController

☆樱花仙子☆ 提交于 2019-12-17 19:25:47
问题 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

Laying white toolbar over QLPreviewController toolbar is looking gray

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 18:01:07
问题 I stumbled upon this SO discussion on adding/removing qlpreviewcontroller's uibarbuttonitems. However they were removing the navigation bar and overlaying a new one on top of it. I was looking to change the toolbar primarily because the toolbar that comes with QLPreviewController is black and the rest of the toolbars in my application are white. I have code in place to get the bar overlaying but it seems that when I set the toolbar tint color to white, its actually becoming a light gray. I

QLPreviewController hide bottom toolbar

孤街醉人 提交于 2019-12-12 09:11:16
问题 I use QLPreviewController in my app and want to hide bottom toolbar which allows to move through it's datasource items. Is it possible to do somehow? I tried to search it as a subview of QLPreviewController's view but it has only one subview of _UISizeTrackingView class . As i understand it's a private class so i have no rights to look for something there. Are there any ways to hide this toolbar and does Apple allow to make that? Thank you. 回答1: QLPreviewViewController can have more than 1

objective C QLPreviewController does not display image

梦想与她 提交于 2019-12-11 18:13:27
问题 i used Afnetworking to download image file, and display it using QlViewController. Here is my image: Here is my code to download and display image: NSURLSessionDownloadTask *downloadTask = [manager downloadTaskWithRequest:request progress:^(NSProgress * _Nonnull uploadProgress) { NSLog(@"NSProgress: %@", uploadProgress); // [SVProgressHUD showProgress:uploadProgress.fractionCompleted]; } destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) { NSURL *documentsDirectoryURL = [

QLPreviewController hide print button in ios6

泪湿孤枕 提交于 2019-12-11 01:46:51
问题 How can I hide the print button in QLPreviewController In IOS5 , this code works QLPreviewController *previewController = [[QLPreviewController alloc] init]; previewController.dataSource = self; previewController.delegate = self; previewController.currentPreviewItemIndex = _fileidx; [[self navigationController] pushViewController:previewController animated:YES]; [previewController.navigationItem setRightBarButtonItem:nil]; but in IOS6, it does`t. 回答1: i managed to do it by creating a timer to