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
7
votes
2 answers

UIActivityViewController Copy copies item twice on iOS 11

I am using UIActivityViewController to share a webview url on iOS 11 and when using Copy then go to Messages app then paste, it is pasted twice. Out of curiosity I tried to do the same with Safari, Chrome, Firefox, and also for other apps than…
Mahmoud Adam
  • 5,772
  • 5
  • 41
  • 62
7
votes
1 answer

Sharing Live photo on WhatsApp in Swift 3 using UIActivityViewController not working

I am sharing Image,video and LivePhoto using UIActivityViewController on Different social media. But when i am sharing LivePhoto on WhatsApp ,something like below is happening : when ActivityViewController present -> click on WhatsApp -> it…
7
votes
1 answer

Google+ in iOS 9.3 is hanging up

I am using the share option in my app using UIActivityViewController; it's working fine in iOS 9.2 and Google+ share option is not working in iOS 9.3 To confirm this, I had downloaded other app which has the share option using…
Lion
  • 872
  • 1
  • 17
  • 43
7
votes
1 answer

UIActivityViewController: Exclude non-Apple sharing extensions?

I would like to prevent my app to share its content to certain other apps using the extensions mechanism. For instance, I want the user to be able to share a link, but not with the Gmail app. My understanding of the documentary is that the following…
scrrr
  • 5,135
  • 7
  • 42
  • 52
7
votes
1 answer

how to share different urls via uiactivityviewcontroller?

I am trying to use UIActivityViewController share different URLs for each item. e.g. For twitter : www.google.com ; For Facebook : www.bing.com I know that I can customize the text for each one but I can't seem to find a way to customize the url for…
jonypz
  • 1,515
  • 1
  • 20
  • 35
7
votes
5 answers

UIActivityViewController share only text

I want to share just simple text using UIActivityViewController I am using swift, with xcode 6.3 The code is very simple, work great for photos, but not just text, I don't want to include any web URL with the objectsToShare, just clean text Here is…
user3728728
  • 885
  • 2
  • 11
  • 14
7
votes
1 answer

Did Facebook break UIActivityViewController on iOS with its latest app update?

Two observations: One It appears that for your app to use Share Sheets (aka UIActivityViewController), you now have to provide either: An NSURL as one of the ActivityItems, or A UIActivityItemProvider where the call to super…
st.derrick
  • 4,769
  • 2
  • 24
  • 25
7
votes
3 answers

How to set mail subject with UIActivityItemProvider

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…
Yuchen
  • 30,852
  • 26
  • 164
  • 234
7
votes
2 answers

Sharing A Screenshot in Activity View Controller - Swift

I'm developing part of an app so that when you tap the share button, it allows you to instantly share a screenshot of your highscore along with a message. I haven't been able to produce/share a screenshot, and when I tap the share button, the app…
tdh
  • 884
  • 1
  • 11
  • 22
7
votes
2 answers

UIActivityViewController doesn't work in iOS 8

I was using UIActivityViewController to share something for my application. It works well in any device prior to iOS8. The problem is the text,images are not be shown in email, twitter, Facebook in iOS 8 device or simulator. Here is my code: …
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
7
votes
1 answer

Airdrop error message: "cannot receive all of these items at the same time"

I use the following code to share an image, some text, and a url using UIActivityViewController. Everything works fine except that when the use selects AirDrop, it gets a "cannot receive all of these items at the same time". If I only share the…
RawMean
  • 8,374
  • 6
  • 55
  • 82
7
votes
0 answers

UIActivityViewController mixing text and images and keeping the order

Is it possible to mix images and text and send them as MMS? UIActivityViewController will share an image with text underneath, but no matter how I order the text and images, the images always appear on top and the text on the bottom. If it's not…
Mikey A. Leonetti
  • 2,834
  • 3
  • 22
  • 36
7
votes
1 answer

UIActivityViewController with NSURL to audio file only shows airdrop

I am trying to use a UIActivityViewController to share an audio file (.aac). It is a temporary file that I have written to the sandboxed documents directory. I pass a NSURL in the initWithActivityItem: method. [audioData writeToFile:[urlToAudioFile…
Joseph
  • 9,171
  • 8
  • 41
  • 67
7
votes
2 answers

How can I make my app appear in UIActivityViewController for text?

I would like my app to appear in the UIActivityViewController for text, in other apps. For example, when sharing from the Notes app as shown below. Adding the following to the Info.plist didn't produce any visible results (in Notes, Evernote and…
hpique
  • 119,096
  • 131
  • 338
  • 476
7
votes
1 answer

UIActivityViewController and UIDocumentInteractionController

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"…