uidocumentinteraction

ios iphone hooks open instagram directly without showing UIDocumentInteractionController

时光怂恿深爱的人放手 提交于 2019-12-03 12:56:14
I'm integrating sharing images through instagram in my app. I've read their documentation . It seems that I need to use the iOS UIDocumentInteractionController to allow this (I understand that it allows access to files in my app's sandbox). Digging deeper, I came across this library which makes things very straightforward. The problem I have with it is that it presents the action sheet (which only has one button - Instagram...) How can I use the instagram hooks , with the UIDocumentInteractionController without showing the action sheet. I came across this question which is pretty much the same

iOS - Send Image to Instagram - DocumentInteraction

那年仲夏 提交于 2019-12-03 12:41:07
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 present the UIDocumentInteractionController menu in iOS 9+. For the record this is a simplified version of

Instagram open UTI directly

我的未来我决定 提交于 2019-12-03 11:40:54
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); UIImage *i = imageView.image; CGRect cropRect = CGRectMake(i.size.width - 306 ,i.size.height - 306 ,

UIDocumentInteractionController for Open In menu - Doesn't Work

孤人 提交于 2019-12-03 06:51:43
问题 I implemented a UIDocumentInteractionController to send files to other apps. The file is a .txt file. Here's the code: UIDocumentInteractionController *interactionController = [[UIDocumentInteractionController alloc] init]; [interactionController setURL:[NSURL fileURLWithPath:filePath]]; [interactionController setUTI:@"public.text"]; [interactionController setDelegate:self]; [interactionController presentOpenInMenuFromBarButtonItem:actionBarButtonItem animated:YES]; The menu opens fine,

UIActivityViewController vs UIDocumentInteractionController in ios

六月ゝ 毕业季﹏ 提交于 2019-12-03 05:53:26
I just read some articles on UIActivityViewController and UIDocumentInteractionController in iOS, but I am very confused about how to use them because both seem the same. So, when do I use UIActivityViewController or UIDocumentInteractionController ? Is there any difference for Open In... & use UIActivityViewController ? I am very confused about how to use them. Please clarify to me their specific use. sangony In short, UIDocumentInteractionController deals with files while UIActivityViewController deals with various other services in your app. I'm not one to criticize much but you really

UIDocumentInteractionController unable to add ics file to calendar

ε祈祈猫儿з 提交于 2019-12-03 03:57:39
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 ' is replaced with ' This invitation data is out of date ' If i use the share option to send the file

UIDocumentInteractionController for Open In menu - Doesn't Work

流过昼夜 提交于 2019-12-02 20:28:51
I implemented a UIDocumentInteractionController to send files to other apps. The file is a .txt file. Here's the code: UIDocumentInteractionController *interactionController = [[UIDocumentInteractionController alloc] init]; [interactionController setURL:[NSURL fileURLWithPath:filePath]]; [interactionController setUTI:@"public.text"]; [interactionController setDelegate:self]; [interactionController presentOpenInMenuFromBarButtonItem:actionBarButtonItem animated:YES]; The menu opens fine, showing apps like Pages, Dropbox, etc. as I expect. But when I tap one of them, the Open In menu dismisses

iOS - open photo from photo album in my app

浪尽此生 提交于 2019-12-02 03:32:43
问题 I would like to let users browse photos in their photo albums, tap the action button, and share/open selected photos in my app. Some apps (like Viber and WeChat) provide a custom view to handle this. This is the WeChat screen: What is the name of this feature and which class do I have to use to achieve this behavior? 回答1: You need to do check for share option in the ioS extensions app extensions extension programming guide Share extension Example from Tumbler developer team 回答2: You can use

Is there a way to limit the Applications shown in a UIDocumentInteractionController?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 20:57:26
问题 I am currently displaying a UIDocumentInteractionController so that the user of my App can open a File in a different App. The controller pops up and lists the App with no problem. However, it also displays Cloud apps such as Dropbox (which I'm assuming associate themselves with nearly every valid file-type), which is quite annoying. Is there anyway that I can specify the controller to only display the App I want? 回答1: No, you cannot filter this list. You're not allowed to tell the user that

UIDocumentInteractionController crashing upon exit

穿精又带淫゛_ 提交于 2019-12-01 17:27:43
I have a regular UIButton on my main menu that currently launches a UIViewController; the contents of the corresponding .m file is as follows: -(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; documentPath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"pdf"]; NSURL *targetURL = [NSURL fileURLWithPath:documentPath]; document = [UIDocumentInteractionController interactionControllerWithURL: targetURL]; document.delegate = self; [document retain]; return self; } -(UIViewController *