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
6
votes
1 answer

Facebook app API key and UIActivityViewController

Is it possible to supply a Facebook API Key when posting to Facebook from a UIActivityViewController? If not, then how would it be possible to add the Facebook SDK to be used with the UIActivityViewController? I basically want to use the share sheet…
Darren
  • 10,182
  • 20
  • 95
  • 162
6
votes
1 answer

Post link to Facebook including app URL scheme - iOS 6

I'm using the UIActivityViewController to share an image and url from within my app. I'm having trouble formatting the facebook post. I attach an image using a subclassed UIActivityItemProvider and provide the text for the post in the same way. I…
Darren
  • 10,182
  • 20
  • 95
  • 162
6
votes
1 answer

iOS 6 - UIActivityViewController items

Hope everyone is aware of iOS 6 contains new style of ActionSheet (UIActivityViewController). The UIActivityViewController can be initiated with the paramentes like string, url, image etc. Below is the code snippet for that (where items is an array…
ashok
  • 255
  • 2
  • 4
  • 10
6
votes
1 answer

Show thumbnail for url attachment on UIActivityViewController

When you a share a url with the UIActivityViewController, it just shows the Safari compass. I get that this is supposed to show the user that they are sharing a link, but is it possible to get this to show a thumbnail/image instead? I realize it…
Luke
  • 648
  • 7
  • 15
6
votes
1 answer

UIActivityViewController not showing "Open in iBooks" option

I have a problem in my app. After getting some statistics, I generate a PDF file, and I want to show an UIActivityViewController with the options "Open in iBooks" and "Send By Mail" mainly (others like "Open in Dropbox" would be great to). Well the…
diegomen
  • 1,804
  • 1
  • 23
  • 37
6
votes
1 answer

How can I present a ModalViewController from a UIActivity item picked from UIActivity View Controller?

I am working on an app that presents some data in a detailViewController. I have a rightBarButton in the navbar that presents a UIActivityViewController that is filled with my own UIActivity sublclassed items. Most of them work fine as they are just…
6
votes
4 answers

Creating a custom sharing view similar to new iOS 6 button sharing

With the new iOS 6, Apple added the new UIActivityViewController (image A) sharing menu which has little icon buttons to share instead of just the old UIActionSheet text button. I want to display a UIActivityViewController but with custom buttons. I…
rob1302
  • 1,631
  • 3
  • 15
  • 18
5
votes
1 answer

UIActivityViewController completionWithItemsHandler function not called in MacOS app

Background The function shareImage() in the code below launches the UIActivityViewController and shares an image, for example sends to Messages or saves to Photos. After the image is shared, UIActivityViewController finishes up, and calls the…
user4806509
  • 2,925
  • 5
  • 37
  • 72
5
votes
1 answer

How do I give screenshot file a filename when sharing via UIActivityView

I have created a VC with a print and share friendly version of a bunch of calculations. When I press "share" there appears the little icon and all the share options which is great. I cannot figure out how to add a filename of some kind beside the…
RobbB
  • 1,214
  • 11
  • 39
5
votes
1 answer

How is the title of a UIActivityViewController set?

How does a UIActivityViewController's title get set? I have a UIActivityViewController which uses a custom UIActivityItemProvider as well as a custom UIActivity. The title that appears at the top of the the UIActivityItemController is intially…
Son of a Beach
  • 1,733
  • 1
  • 11
  • 29
5
votes
2 answers

Swift - How to share app link as in the App Store

I'm trying to share my app using UIActivityViewController but I can't reproduce the same effect as when I share an app from the App Store, meaning : When I clicked the share button in the App Store I have something that looks like this : But when I…
NicoC
  • 151
  • 1
  • 11
5
votes
1 answer

Swift 4 - UIActivityViewController share to Outlook Subject and Title

I am using UIActivityViewController to share text to Outlook, everything is working fine except for two things, one I can't set a subject line and two I cant set a title of that I am sharing, my text is html table and it is currently shown the first…
user979331
  • 11,039
  • 73
  • 223
  • 418
5
votes
2 answers

Set thumbnail image for UIActivityViewController with smaller UIImage

I'd like to set a specific smaller thumbnail, but still use a high quality image for the activity item I'm sharing. My problem is when sharing large images, the thumbnail takes time to generate, which can cause problems when sharing it to certain…
5
votes
2 answers

Detect which App was launched using UIActivityViewController

When an external app is launched using UIActivityViewController, can we detect which app was used in the completionHandler? In Apple's documentation, there is mention of a property UIActivity.ActivityType, but it seems this is used only to detect…
NSAdi
  • 1,243
  • 9
  • 19
5
votes
1 answer

How to disable "Save To Files" in iOS 11?

I have an iOS app which creates a PDF and is shared using the UIActivityViewController using the default share functionality. I had to block a few sharing facilities like Vimeo, Facebook, Twillio, etc. and also the file should not be stored on the…
BlackPearl12
  • 306
  • 5
  • 20