Questions tagged [uiactivityviewcontroller]

The UIActivityViewController class is a standard view controller that you can use to offer various services from your application (on iOS).

The UIActivityViewController class is a standard view controller that you can use to offer various services from your application. The system provides several standard services, such as copying items to the pasteboard, posting content to social media sites, sending items via email or SMS, and more. Apps can also define custom services.

Resources:

1252 questions
8
votes
1 answer

ios 8 completion block not called

In my app I am using TTOpenInAppActivity to insert "Open in" action inside UIActivityController. Inside it works like this: Some view controller presents UIActivityController with TTOpenInActivity already built in. -(void)openWithAction { NSURL…
8
votes
0 answers

Display UIActivityViewController in ActionSheet not Popover

In iOS <7, the UIActivityViewController could be presented the same on iPads and iPhones, from the bottom of the screen, with a cancel button on the bottom. With iOS 8, it appears that the UIActivityViewController desires to be presented inside a…
Jake Chasan
  • 6,290
  • 9
  • 44
  • 90
8
votes
1 answer

iOS 8 UIActivity: disable specific third-party sharers?

I'm fighting with UIActivityViewController in iOS 8. I'd built a custom Pinterest sharing mechanism which works beautifully in iOS 7 -- specifically, it uploads an image to my server, and then creates a Pin with that image and a URL which I…
DanM
  • 7,037
  • 11
  • 51
  • 86
8
votes
1 answer

UIActivityViewController on iOS 8 show "more" button with custom activities

Now XCode 6 with iOS 8 SDK is out, we can talk about stuff. I tried to use custom activities with UIActivityViewController on iOS 7, everything worked fine. But on iOS 8, when custom activities are shown, there is "more" button sitting next to them…
L N
  • 2,856
  • 4
  • 20
  • 30
8
votes
1 answer

iOS 8 custom UIActivity image black background color

I am trying to add a custom UIActivity of type UIActivityCategoryAction to UIActivityController. But in iOS 8, all of them are appearing with a black background. Is there a way to change this?
8
votes
2 answers

iOS 8 - Disable iCloud Photo Sharing Activity

Apparently iOS8 by default adds a "iCloud Photo Sharing" activity to activity views in iOS8 and I haven't found any useful documentation regarding it, especially how to explicitly remove it (going into the "More" option allows the user to toggle…
Brendan Cain
  • 272
  • 4
  • 11
8
votes
1 answer

UIActivityViewController on iPad weird behavior, App not optimized

My app isn't optimized for iPad but before iOS 7, UIActivityViewController was working perfectly (same behavior on both devices). I mean, it works now, but some icons are strange and others are missing. Screenshot: I'm presenting…
Erick Filho
  • 1,962
  • 3
  • 18
  • 31
8
votes
3 answers

How to get listed in the share menu?

I'm creating a messaging app and I would like to enable other apps to share text to my app via the share menu option. How do I get my app listed in there? This is the menu I would like to get listed in:
Matt
  • 2,981
  • 5
  • 23
  • 33
8
votes
1 answer

UIActivityViewController cannot add image to imessage

I'm using UIActivityViewController to share image on ios 6 and my code UIImage *shareImage = [UIImage imageNamed:@"myImage.png"]; // Init array NSMutableArray *items = [NSMutableArray new]; [items addObject:@""]; …
crz
  • 438
  • 5
  • 18
7
votes
1 answer

iOS 13, Custom Image, title and subtitle in the presented UIActivityViewController

I would like to know if there is any way to customise the image, title and subtitle of presented UIActivityViewController in iOS 13?
Sattar
  • 393
  • 5
  • 18
7
votes
2 answers

Why is UIActivityViewController displaying auto constraint errors in console

I am trying to implement the Share functionality using UIActivityViewController. Using Swift 5, Xcode 11.2.1, ios 13.2. I have used UITableViewController and in the rows's click I have called the share() method as shown below : class…
Kavisha
  • 155
  • 1
  • 10
7
votes
1 answer

How to dismiss the UIActivityViewController during a UI test with Xcode 11 & iOS 13

Apple has re-designed the share sheet that appears, which has now broken my UI tests. I have attempted to record a new UI test through Xcode, but as soon as I tap on the dismiss button, the test terminates so I have not been able to capture the…
CodeBender
  • 35,668
  • 12
  • 125
  • 132
7
votes
2 answers

Multiple images not getting saved in Photo Library by using UIActivityViewController

I need to save multiple images in the photo library, the user can multiple selects the images from the app gallery then can save them in iPhone Photo Gallery. I am showing the UIActivityViewController for the purpose. Suppose a user selects 10 or…
Mr. Bean
  • 4,221
  • 1
  • 19
  • 34
7
votes
3 answers

UIActivityViewController Error: Failed to determine whether URL is managed by a file provider

I record a video in my app and write it it to the temp directory to allow the user to share it through UIActivityViewController. The video can successfully be played back in-app, and through UIActivityViewController can successfully be sent through…
Jake G
  • 1,185
  • 9
  • 19
7
votes
3 answers

UIActivityViewController Hide my application share Extension

In my application, I have added my share extension it's working fine, But I face One problem When I invite app through UIActivityViewController I show my application Extension. How can I hide my application Extension of my own application?
Ilesh P
  • 3,940
  • 1
  • 24
  • 49