uidocumentinteraction

UIDocumentInteractionController Calendar Access

*爱你&永不变心* 提交于 2019-12-05 09:14:43
问题 I have an ics (Calendar) file that I'm opening with a UIDocumentInteractionController , using presentOptionsMenuFromRect: . When this runs, the "Open In" menu looks like this. As you can see, no "Add to Calendar" option. Here's what gets me: I'm using the same exact code for a .vcf (contact card) file, and it works as expected with the "Open In Contacts" option available. Am I missing some sort of permission in my Info.plist for calendar access? Why can't UIDocumentInteractionController

Document interaction controller with iOS 7 status bar?

烈酒焚心 提交于 2019-12-05 06:51:24
The UIDocumentInteractionController seems to have trouble interacting properly with the new iOS 7 status bar particularly in landscape orientation. The code I have for displaying the viewer right now: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; NSString *filePath = [[NSBundle mainBundle] pathForResource:@"example" ofType:@"pdf"]; NSURL *url = [NSURL fileURLWithPath:filePath]; UIDocumentInteractionController *pdfViewer = [UIDocumentInteractionController interactionControllerWithURL:url]; [pdfViewer setDelegate:self]; [pdfViewer presentPreviewAnimated:YES]; } -

iOS - Send Image to Instagram - DocumentInteraction

╄→гoц情女王★ 提交于 2019-12-04 19:21:47
问题 Would it be possible to share a picture to Instagram bypassing the Action Share Sheet? Please Note that I am aware of the UIDocumentInteractionController and the hooks and in fact it works fine. With their sample code you get a Copy to Instagram option (either unique if you use the exclusive UTI or a big list of apps which can handle a JPG/PNG, alongside with Instagram). This works fine, but I'd like to know if there's a way to execute the action "Copy to Instagram" without the need to

Instagram open UTI directly

女生的网名这么多〃 提交于 2019-12-04 17:51:21
问题 I recently stumbled upon the following interesting feature: Instagram iPhone Hooks I was wondering if one is able to open an app through the documentinteractioncontroller immediately, WITHOUT having to show a preview (– presentPreviewAnimated:) or an action sheet (– presentOpenInMenuFromRect:inView:animated:). Seems to me that it's the only way, but I might be missing something. -(void) saveToInstagram { NSURL *url; UIDocumentInteractionController *dic; CGRect rect = CGRectMake(0 ,0 , 0, 0);

Display encrypted file using QuickLook framework or UiDocumentInteractionController

陌路散爱 提交于 2019-12-04 11:59:09
问题 I have an encrypted word/excel/pdf file locally stored which I need to preview in my iPad app. I understand that QLPreviewController or UiDocumentInteractionController could be used to preview these files. I can very well use this - (id <QLPreviewItem>) previewController: (QLPreviewController *) controller previewItemAtIndex: (NSInteger) index { return [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:[documents objectAtIndex:index] ofType:nil]]; } But the file is encrypted and

UIDocumentInteractionController Calendar Access

本秂侑毒 提交于 2019-12-03 21:33:55
I have an ics (Calendar) file that I'm opening with a UIDocumentInteractionController , using presentOptionsMenuFromRect: . When this runs, the "Open In" menu looks like this . As you can see, no "Add to Calendar" option. Here's what gets me: I'm using the same exact code for a .vcf (contact card) file, and it works as expected with the "Open In Contacts" option available. Am I missing some sort of permission in my Info.plist for calendar access? Why can't UIDocumentInteractionController handle the .ics file type correctly, but .vcf works just fine? Those two file types are very similar. From

Custom “Email” action in UIDocumentInteractionController

↘锁芯ラ 提交于 2019-12-03 19:28:44
问题 Is there any way to add a custom action to the list of actions provided by the UIDocumentInteractionController? I would like to add an "Email" action to the list. I know I can use the MFMailComposeViewController to send email with attachments, but the problem is not how to send a file as an attachment the problem is one of UI. I have an "Action" UIBarButtonItem which brings up the UIDocumentInteractionController providing options for printing and opening in iBooks. Great... but I also need a

Cannot dismiss email sheet invoked from UIDocumentInteractionController in iOS 8

五迷三道 提交于 2019-12-03 16:05:30
I've got a very simple test app which contains nothing but the following code, attached to a UIButton : - (IBAction)buttonUp:(id)sender { // Build file path NSString* filePath = [[NSBundle mainBundle] pathForResource:@"testfile" ofType:@"txt"]; NSURL *url = [NSURL fileURLWithPath:filePath]; m_interactionController = [UIDocumentInteractionController interactionControllerWithURL:url]; [m_interactionController presentOptionsMenuFromRect:CGRectMake(200, 200, 100, 100) inView:[self view] animated:YES]; } This builds with no issues, and running under iOS 7 (on a 4th generation iPad: A1458), this

UIDocumentInteractionController stopped working iOS 8

人盡茶涼 提交于 2019-12-03 15:54:09
I have a PDF file saved in the document directory. The path to the file is stored in a NSString property 'self.URL'. Here is my code to present the activity items: -(void)presentDocumentInteractionController{ self.docController = [UIDocumentInteractionController interactionControllerWithURL:self.URL]; self.docController.delegate = self; [_docController setUTI:@"com.adobe.pdf"]; [_docController presentOptionsMenuFromBarButtonItem:self.activityBarButton animated:YES]; } Before iOS 8 this code worked fine. The user was presented with a list of items such as print, copy and email to choose from.

UIDocumentInteractionController unable to add ics file to calendar

ぃ、小莉子 提交于 2019-12-03 12:57:47
问题 I am trying to open an ics ( Calendar ) file within my iOS application . For debug purposes i have added a ics file to my bundle of a calendar event created within iCal. I am using UIDocumentInteractionController to present the data of the calendar invite with the hope of letting the user add it to their calendar. However on presenting the UIDocumentInteractionController with in ics as the source file, it correctly shows all the data related to the event, however the button 'add to calendar '