uiactivity

Open In For iOS App

落花浮王杯 提交于 2020-01-17 03:43:22
问题 I have to design an iOS app which will download a pdf file and there will be an "open in" by UIActivityViewController ( UIActivity subclassing) .Using OpenUrl I sent data to the other application and I can get pdf data in second application . But I want the same functionality with Safari also. I want to see the second app in safari "open in" and once user get some pdf in Safari, user can click open in to get pdf data in second application . - (void)performActivity { NSString *urlstring=@"ran

UIActivityViewController use items in specific actions

…衆ロ難τιáo~ 提交于 2020-01-13 03:24:06
问题 I have a UIActivityViewController and i want to make it have all the actions safari does and more. Currently i can only get mail, messages, twitter, facebook and a semi-working copy. I set the activity items array with a url. I then added a nsstring of that url and added that with the url, and everything worked good like copying worked better by copying the string and i paste it in more areas. But when having the string also, twitter and facebook added the urls into their text and include the

UIActivityViewController or UIDocumentInteractionController with WhatsApp and FB

对着背影说爱祢 提交于 2020-01-10 11:47:11
问题 I need to have Facebook and WhatsApp as sharing options for my image. I've already implemented UIActivityViewController, where i can share via Facebook and UIDocumentInteractionController where i can share via WhatsApp. I don't know how to merge these things. UIActivityViewController: UIActivityViewController *activityViewContoller = [[UIActivityViewController alloc] initWithActivityItems:@[@"Test", image] applicationActivities:nil]; [self presentViewController:activityViewContoller animated

UIActivityViewController or UIDocumentInteractionController with WhatsApp and FB

梦想与她 提交于 2020-01-10 11:47:10
问题 I need to have Facebook and WhatsApp as sharing options for my image. I've already implemented UIActivityViewController, where i can share via Facebook and UIDocumentInteractionController where i can share via WhatsApp. I don't know how to merge these things. UIActivityViewController: UIActivityViewController *activityViewContoller = [[UIActivityViewController alloc] initWithActivityItems:@[@"Test", image] applicationActivities:nil]; [self presentViewController:activityViewContoller animated

Compose UIActivityTypeMessage with UIImage

我怕爱的太早我们不能终老 提交于 2020-01-10 10:34:11
问题 Was wandering if anyone can offer some insight. For the life of me I can't figure out how to send a UIImage with UIActivityTypeMessage all though some say it is possible. The docs say: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIActivity_Class/Reference/Reference.html UIActivityTypeMessage The object posts the provided content to the Messages app. When using this service, you can provide NSString and NSAttributedString objects as data for the activity items. You

presentOpenInMenuFromBarButtonItem: doesn't cause menu to appear

孤街醉人 提交于 2020-01-04 06:29:23
问题 I am attempting to display an Open In menu via UIDocumentInteractionController and presentOpenInMenuFromBarButtonItem . This does not bring up the UIDocumentInteractionController on screen. The weird thing is that if I replace " OpenIn " with " Options " then it will work as expected. What is causing presentOpenInMenuFromBarButtonItem not to work? Thank you. NSString *fileName = [NSString stringWithFormat:@"%@text.txt", NSTemporaryDirectory()]; [self.textToShare writeToFile:fileName

presentOpenInMenuFromBarButtonItem: doesn't cause menu to appear

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 06:29:16
问题 I am attempting to display an Open In menu via UIDocumentInteractionController and presentOpenInMenuFromBarButtonItem . This does not bring up the UIDocumentInteractionController on screen. The weird thing is that if I replace " OpenIn " with " Options " then it will work as expected. What is causing presentOpenInMenuFromBarButtonItem not to work? Thank you. NSString *fileName = [NSString stringWithFormat:@"%@text.txt", NSTemporaryDirectory()]; [self.textToShare writeToFile:fileName

presentOpenInMenuFromBarButtonItem: doesn't cause menu to appear

喜你入骨 提交于 2020-01-04 06:29:02
问题 I am attempting to display an Open In menu via UIDocumentInteractionController and presentOpenInMenuFromBarButtonItem . This does not bring up the UIDocumentInteractionController on screen. The weird thing is that if I replace " OpenIn " with " Options " then it will work as expected. What is causing presentOpenInMenuFromBarButtonItem not to work? Thank you. NSString *fileName = [NSString stringWithFormat:@"%@text.txt", NSTemporaryDirectory()]; [self.textToShare writeToFile:fileName

iOS 7 custom UIActivity as popover

喜你入骨 提交于 2019-12-22 12:43:39
问题 This is my first question on StackOverflow, so please be patient with me... Here's the problem: I have created a custom Activity for adding bookmarks, which is opened from the UIActivityViewController . On iPhone it is opened as a modal, which is ok. But on iPad I open the UIActivity in a Popover, and I want the custom BookmarkActivity also to be opened in this Popover. The method -(UIViewController *)activityViewController in my UIActivity subclass looks like this: - (UIViewController *

UIActivityViewController and UIDocumentInteractionController

霸气de小男生 提交于 2019-12-21 10:47:19
问题 How do I combine a UIActivityViewController and a UIDocumentInteractionController? The Mail app and the Tumblr app seem to compine a UIActivityViewController with a UIDocumentInteractionController because their controllers also show the "Open in" buttons besides the UIActivities. How can I accomplish this? 回答1: Use presentOptionsMenuFromRect:inView:animated: in UIDocumentInteractionController 来源: https://stackoverflow.com/questions/19591028/uiactivityviewcontroller-and