uidocumentinteraction

iOS share image AND text to WhatsApp

核能气质少年 提交于 2019-11-29 20:37:45
I have googled, and get some solutions, it seems the only possible way is thru UIDocumentInteractionController . I have found the result that able to share text ONLY, also found result that share image ONLY. But what I want is share BOTH . I know this question may be duplicated, I just wanted to make it clear, here is the screenshot... (This is shared from Android) Gauraw You can use UIActivityViewController to share image , text or URL .Here is a small example : NSString *textToShare = @"Enter your text to be shared"; UIImage * image = [UIImage imageNamed:@"imagename"]; NSArray

UIDocumentInteractionController not working in iPad Simulator (XCode 3.2.3)

限于喜欢 提交于 2019-11-29 11:32:35
The UIDocumentInteractionController appears to be non-functional in iPad Simulator ("iPhone Simulator" version 4.0, shipping with XCode 3.2.3, using iOS Version 3.2). I have a simple sample code presenting a PDF preview using UIDocumentInteractionController . It works on the device. On iPad presentPreview just returns NO, the UIDocumentInteractionController's delegate methods are not invoked. Any hint how to make it work? Confirming the same behaviour over here: calling - (BOOL)presentPreviewAnimated: returns NO on the simulator but works on the device. Thanks for pointing this out, I just

UIDocumentInteractionController adding custom actions to menu (eg email, save to photos)

南笙酒味 提交于 2019-11-29 05:24:33
问题 I've started using UIDocumentInteractionController for a new app but I'm wondering how to add additional actions to the action menu that you get on the preview screen? It seems that the menu only lists apps that have registered for a given url type plus I'm seeing PRINT showing up on iOS4.2. I would like to add send by email and save to photos but don't see a way of extending this menu. I can code the actions I want OK, it's just adding them into the menu that seems impossible? Am I missing

How to add event in native IOS Calendar

筅森魡賤 提交于 2019-11-28 17:40:13
I want to open native IOS calendar(ical) from my application and add event. Is there any way i can open calendar for particular event? I also follow Open iphone calendar app programmatically but not yet succeeded. See the Calendar and Reminders Programming Guide . But the basic process is: Add the EventKit.Framework and EventKitUI.Framework to your project. (See Linking to a Library or Framework .) Import the header: #import <EventKitUI/EventKitUI.h> If creating an event, you use : - (IBAction)didPressCreateEventButton:(id)sender { EKEventStore *store = [[EKEventStore alloc] init]; if([store

UIDocumentInteractionController not working in iPad Simulator (XCode 3.2.3)

随声附和 提交于 2019-11-28 05:16:50
问题 The UIDocumentInteractionController appears to be non-functional in iPad Simulator ("iPhone Simulator" version 4.0, shipping with XCode 3.2.3, using iOS Version 3.2). I have a simple sample code presenting a PDF preview using UIDocumentInteractionController . It works on the device. On iPad presentPreview just returns NO, the UIDocumentInteractionController's delegate methods are not invoked. Any hint how to make it work? 回答1: Confirming the same behaviour over here: calling - (BOOL

UIDocumentInteractionController no longer works in iOS6

半世苍凉 提交于 2019-11-27 23:01:40
I have an app that shares with instagram built for iOS5 and now in iOS6, sharing no longer works although canOpenURL returns true and code executes. The images are saved to the documents folder of the application with a .igo extension. This is passed to instagram with com.instagram.exclusivegram. The code is below, it enters the if statement and displays "here in" but does not open the Share With dialog like it used to at the bottom of the screen. NSLog(@"%@", _imgToUpload); NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"]; if ([[UIApplication sharedApplication] canOpenURL

How to add event in native IOS Calendar

纵然是瞬间 提交于 2019-11-27 10:40:07
问题 I want to open native IOS calendar(ical) from my application and add event. Is there any way i can open calendar for particular event? I also follow Open iphone calendar app programmatically but not yet succeeded. 回答1: See the Calendar and Reminders Programming Guide. But the basic process is: Add the EventKit.Framework and EventKitUI.Framework to your project. (See Linking to a Library or Framework.) Import the header: #import <EventKitUI/EventKitUI.h> If creating an event, you use : -

Adding Images to UIActionSheet buttons as in UIDocumentInteractionController

家住魔仙堡 提交于 2019-11-27 06:11:32
Is it possible to add an image to the buttons of the UIActionSheet as seen in UIDocumentInteractionController ? If so, please let me know how it is done. Amit Try this way, i hope it may be help you. UIActionSheet * action = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"",nil]; [[[action valueForKey:@"_buttons"] objectAtIndex:0] setImage:[UIImage imageNamed:@"yourImage.png"] forState:UIControlStateNormal]; [[[action valueForKey:@"_buttons"] objectAtIndex:0] setImage:[UIImage imageNamed:@"yourImage

UIDocumentInteractionController no longer works in iOS6

隐身守侯 提交于 2019-11-27 04:39:11
问题 I have an app that shares with instagram built for iOS5 and now in iOS6, sharing no longer works although canOpenURL returns true and code executes. The images are saved to the documents folder of the application with a .igo extension. This is passed to instagram with com.instagram.exclusivegram. The code is below, it enters the if statement and displays "here in" but does not open the Share With dialog like it used to at the bottom of the screen. NSLog(@"%@", _imgToUpload); NSURL

Supporting Open In… menu item in my app for iOS Mail And Safari

泄露秘密 提交于 2019-11-26 14:58:26
I need to have my app open documents from the Safari and Mail apps with that "Open In..." thing in the UIDocumentInteractionController class. How do I accomplish this? CodaFi I know this was extremely frustrating for me as a beginning programmer, or even as a moderately skilled one now. File I/O through the Mail and Safari apps involves very... interestingly named conventions within the app itself. So let's get our hands dirty with an Xcode project for iPhone. Open Xcode (I will be using 4.2 for this Tutorial) and select the 'Single View' application template (or create an empty project, then