uiactivityviewcontroller

how to use UIActivityViewController with MonoTouch

久未见 提交于 2019-12-21 19:58:15
问题 I am trying to access UIActivityViewController from MonoTouch with the following code: var textToShare = new NSString("hallo there"); var activityItems = new NSObject[] {textToShare}; var excludedActivityTypes = new NSString[] { new NSString("UIActivityTypePostToWeibo"), new NSString("UIActivityTypeMessage") }; var activityViewController = new UIActivityViewController(activityItems, null); activityViewController.ExcludedActivityTypes = excludedActivityTypes; this.PresentViewController

Facebook UIActivityViewController is Missing the Cancel and Post Buttons

被刻印的时光 ゝ 提交于 2019-12-21 17:49:50
问题 When my app opens the Facebook UIActivityViewController , there is no navigation bar at the top of the Facebook screen and there is no Cancel or Post button - the only way to exit the screen is to kill the app. Other apps that I look at have an additional navigation bar at the top of the Facebook screen, which holds the Cancel and Post buttons. Here is the code I am using: NSURL *url = [NSURL URLWithString:@"http://www.mywebsite.com"]; NSArray *activityItems = @[url]; // Put together the

Share more than 5 images with UIActivityViewController

一曲冷凌霜 提交于 2019-12-21 16:34:20
问题 I have integrated with UIActivityViewController for sharing images to Facebook: NSArray* dataToShare = imageArray; //This is my image array activityViewController = [[UIActivityViewController alloc] initWithActivityItems:dataToShare applicationActivities:nil]; [[[self parentViewController] parentViewController] presentViewController:activityViewController animated:YES completion:nil]; Sharing is working fine, but there is a problem while sharing multiple images. If there are more than 5

Share more than 5 images with UIActivityViewController

大兔子大兔子 提交于 2019-12-21 16:33:08
问题 I have integrated with UIActivityViewController for sharing images to Facebook: NSArray* dataToShare = imageArray; //This is my image array activityViewController = [[UIActivityViewController alloc] initWithActivityItems:dataToShare applicationActivities:nil]; [[[self parentViewController] parentViewController] presentViewController:activityViewController animated:YES completion:nil]; Sharing is working fine, but there is a problem while sharing multiple images. If there are more than 5

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

Need help setting up an interface where rotation is fixed for most elements, but alert and sharing boxes auto-rotate with the device

≯℡__Kan透↙ 提交于 2019-12-20 03:31:38
问题 I'm working with Xcode 7 and Swift 2. I am working on an interface with a camera preview layer and controls that display in a manner similar to the native iOS camera app. The controls all stay in place as you turn the device, but the icons "pivot" in place to orient properly for the device orientation. (I hope I explained that in a way that makes sense. If not, open the native camera app on your iPhone and turn the device around a few times to see what I'm talking about.) I have the basic

Share App application shortcut [UIApplicationShortcutIconTypeShare]

爷,独闯天下 提交于 2019-12-19 05:22:25
问题 I've seen a lot of apps use the UIApplicationShortcutIconTypeShare application shortcut to share their app right from the home screen. It launches a UIActivityViewController right from the home screen without opening the app. How do you do that? 回答1: The OS adds the sharing menu item automatically to all apps downloaded from the App Store. Note that it doesn't add it to apps installed via Xcode or any third party distribution systems such as Buddybuild. (Edit: the TestFlight version of your

How did the Google Photos iOS app customize the native share sheet (e.g. UIActivityViewController)?

别来无恙 提交于 2019-12-19 04:14:09
问题 When you share photos in Google Photos for iOS, Google shows their own custom view on top of the UIActivityViewController. I know this can be semi-accomplished by drawing your own view on a top-level UIWindow, but Google also somehow hides the bottom 'Cancel' button and fill in the gaps to make it the UIActivityViewController more "full screen". Are they somehow embedding the UIActivityViewController's view inside their own view? Google Photos share sheet: Standard share sheet: 回答1: I was

How to add custom buttons to UIActivityViewController?

感情迁移 提交于 2019-12-19 03:14:32
问题 I am using UIActivity in ios7. It is working fine with a few lines of code. Now i want to add instagram share button to it. Is there a way to add custom buttons to the action sheet? This is how i am creating the UIActivityViewController : NSString *textToShare = self.navigationItem.title; NSArray *itemsToShare = @[textToShare, [imagesArray objectAtIndex:afImgViewer.currentImage]]; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare

How to set mail subject with UIActivityItemProvider

孤人 提交于 2019-12-19 03:13:24
问题 I am using UIActivityViewController for sharing information through email. We are able to send email with body, attachments with no problem. But how do we set the subject title for the email. I notice this question: How to set a mail Subject in UIActivityViewController? The accepted solution is using UIActivityItemSource with this following API activityViewController:subjectForActivityType:. However, our code doesn't conform to UIActivityItemSource because we are using UIActivityItemProvider