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

Sharing images/videos to other apps through UIActivityViewController shows shared items twice in iOS

I'm trying to share some images and videos to other apps(like FB, WhatsApp) using UIActivityViewController. I have sub-classed UIActivityItemProvider, and on calling -(id)item methods, I'm processing the images/videos and saving in documents…
Suran
  • 1,209
  • 1
  • 17
  • 21
6
votes
2 answers

UIActivityViewController Gmail Share unable to set subject field in swift

I am using UIActivityViewController to share but on gmail when I set its subject specifically it does not set. Any help please. let eventURL = eventShare[sender.tag] let eventTitleText = eventTitle[sender.tag] let contentDescription =…
6
votes
1 answer

Send SMS to specific phone number using UIActivityViewController

I am using UIActivityViewController to invite contacts to my app. I just need to share a specific text. It works properly with all the share options, however when I try to send SMS, I can't find an option to add the specific contact…
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
6
votes
0 answers

Plugin com.linkedin.LinkedIn.ShareExtension interrupted in IOS

I'm using UIActivityViewController to share text and link to Linkedin. I got the errors: plugin com.linkedin.LinkedIn.ShareExtension interrupted plugin com.linkedin.LinkedIn.ShareExtension invalidated I installed Linkedin app on my ios device. How…
6
votes
1 answer

UIActivityViewController Gmail share extension duplicated body

I've seen some weird thing with the gmail share extension, like the body and the subject fields are empty if you want to share a content containing a & character. It's possible to get it working with escaping the & character with &, however this…
kennyevo
  • 683
  • 4
  • 24
6
votes
1 answer

Sharing UIImage to UIActivityViewController Twitter/Facebook very slow to show dialog

I have an image I took from the camera and saved to the /tmp folder. When I add this image to the activityItems of an UIActivityViewController, and then press to share with either Twitter or Facebook, I have to wait up to 20 seconds for the share…
Jason
  • 2,223
  • 2
  • 20
  • 28
6
votes
2 answers

Take a full screenshot for all webview in swift

Does anyone know how can I take a full screenshot for all my web view using code in swift ( not the screen ! because the webview is long and we must scroll to view the all content ) and share it via UIActivityViewController?
Hassan Taleb
  • 2,350
  • 2
  • 19
  • 24
6
votes
1 answer

Not able to share URL on Facebook and Twitter using UIActivityViewController in iOS 7.1

I am using UIActivityViewController for share button.It's showing text and url when I am selecting mail option from list but it's showing only text not url when I am selecting Facebook or Twitter.I searched a lot but not getting solution for my…
Chaaruu Jadhav
  • 474
  • 4
  • 22
6
votes
0 answers

UIActivityViewController Crash on presentViewController:

It's fine last week,but today when i use the use the UIActivtyViewController ,the uiactivityviewcontroller crash. - (void)shareThePrice { UIImage *screenShotImg = [self screenShot]; NSString *string = NSLocalizedString(@"shareString",…
6
votes
2 answers

Sharing video to Facebook on iOS 8

I have some sharing code that works fine for iOS 7, but as of iOS 8, no longer works. @IBAction func onShareButton(sender: UIButton) { let movie = NSBundle.mainBundle().URLForResource("IMG_0564", withExtension: "mp4")! let items = [movie] …
David Berry
  • 40,941
  • 12
  • 84
  • 95
6
votes
1 answer

Displaying a progress indicator during UIActivityItemProvider activity

I've got a UIActivityViewController which allows the user to share an image they've created to one of several activity types (facebook, twitter, save to camera roll, print, etc.). Since I want the image to be saved/sent at different quality levels…
DanM
  • 7,037
  • 11
  • 51
  • 86
6
votes
2 answers

Can I tweet an animated GIF from a UIActivityViewController and the native UIActivityTypePostToTwitter yet?

I have a UIActivityViewController sharing an object that conforms to the UIActivityItemSource protocol and offers an animated GIF file by returning an NSURL of a .gif file and CFBridgingRelease(kUTTypeGIF) in the appropriate methods. I see the GIF…
6
votes
3 answers

"Open in" feature in UIActivityViewController

I need your help with UIActivityViewController. I need to present activity controller for the file where, except for default actions, the user will be able to open the file in other apps. I know how to do this with UIDocumentController, which shows…
Yevgeniy Leychenko
  • 1,287
  • 11
  • 25
6
votes
1 answer

How to add custom buttons to UIActivityViewController?

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…
devdev101
  • 241
  • 1
  • 5
  • 14
6
votes
1 answer

How do I check if UIActivityTypeAirDrop exists

I'm using the UIActivityViewController to show a share sheet within some iOS Apps. iOS 7 introduces a new type of UIActivity: UIActivityTypeAirDrop. This is declared as an extern string in the UIActivity.h file... Essentially I'm trying to exclude…
Sammio2
  • 7,422
  • 7
  • 34
  • 49