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
11
votes
3 answers

Swift 2 - Share video with UIActivityViewController

I am trying to share a video from a URL using UIActivityViewController. If I try with an Image I have not problems. Share Image Works: let imageThump = NSURL(string: "https://example.com/image.png") let imageData = NSData(contentsOfURL: imageThump!)…
SNos
  • 3,430
  • 5
  • 42
  • 92
11
votes
2 answers

iOS sharing image and URL to whatsapp using UIActivityViewController

Sharing image and URL using UIActivityViewController works fine for facebook and gmail but didn't work for whatsapp. Here's the code i used - (void)share { UIScreen *screen = [UIScreen mainScreen]; UIWindow *keyWindow = [[UIApplication…
Vashum
  • 853
  • 1
  • 10
  • 24
11
votes
4 answers

Change status bar colours in MFMailComposeViewController through UIActivityViewController

I am trying to change the colour of the navigation bar buttons, navigation bar tint colour and text colour, however I don't seem to be getting anywhere. The MFMailComposeViewController is being activated via a UIActivityViewController and I have…
11
votes
1 answer

UIActivityViewController - plugin net.whatsapp.WhatsApp.ShareExtension invalidated

I'm using UIActivityViewController and after sending an image via Whatsapp, I'm getting this message in the console - plugin net.whatsapp.WhatsApp.ShareExtension invalidated Why is this message showing in log? jaba edited - I am using iOS 9.2,…
ozd
  • 1,194
  • 10
  • 34
11
votes
1 answer

UIActivityViewController image share not working for Whatsapp

When I am sharing an image data to Whatsapp app using UIActivityViewController I am getting an alert saying: This item cannot be shared. Please select a different item. I am able to share the image data to all other apps except Whatsapp, does…
iYoung
  • 3,596
  • 3
  • 32
  • 59
11
votes
3 answers

How to set UIActivityViewController Gmail Share Subject different than body

I am using Gmail Share Extension from Google. I am providing implementation of: - (id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType; -…
sanjana
  • 3,034
  • 2
  • 25
  • 31
11
votes
1 answer

Sharing with UIActivityViewController initWithActivityItems producing different results on iOS7 and iOS8

I have an issue with sharing in my app, and am wondering if I am doing something wrong, or if this is possibly a bug in iOS8. In my app I have the ability to share files, if the sharing type supports attachments it attaches the file (such as email),…
xceph
  • 1,036
  • 2
  • 13
  • 28
11
votes
2 answers

UIActivityViewController include rather than exclude Activity Types

I am using UIActivityViewController. For a particular share message, I only want to offer users the UIActivityTypePostToFacebook (i.e. only share via facebook). I realise I can use the excludedActivityTypes method to exclude all the other current…
Charlie S
  • 4,366
  • 6
  • 59
  • 97
11
votes
4 answers

UIActivityViewController with custom UIActivity displays color image as gray

I created a custom UIActivity to display in a share sheet. I created an 60x60 icon (png file) in full color, but when it's displayed it only shows the outline in gray. I don't see what I've written incorrectly. I hope someone sees what I've…
Rob
  • 4,149
  • 5
  • 34
  • 48
11
votes
4 answers

UIActivityViewController & UIDocumentInteractionController not showing options

I am new to UIActivityViewController and perhaps I am missing a basic understanding. What I am trying to do is attached a csv, xml and vcard file to activity controller and show dropbox, google drive etc options. I have downloaded and installed…
Sam B
  • 27,273
  • 15
  • 84
  • 121
11
votes
3 answers

UIActivityViewController With Alternate Filename?

I am sharing an audio recording via the UIActivityViewController. When the audio file shares via email or iMessage, it shows the underlying name of the audio file without any apparent way of changing it. NSArray *activityItems = [NSArray…
11
votes
3 answers

attach a local video using UIActivityViewController

I'm writing an iOS app that has locally saved videos (.mov). I'm trying to attach the video via UIActivityViewController. It works great for email. The video is successfully attached and sent. It also works when saving to camera roll. It doesn't…
ijason03
  • 571
  • 2
  • 9
  • 26
11
votes
2 answers

UIActivity with no settings for Facebook

Is it possible to show Facebook UIActivity in UIActivityViewController if there's no settings for facebook account in default iOS settings? For now if I enter some fb account - I see fb in UIActivityViewController, if no - not see. Any ideas?
in.disee
  • 1,102
  • 1
  • 7
  • 15
10
votes
2 answers

Instagram Share Extension returning error message when sharing image via local url

I'm having an issue with sharing an image to Instagram via the iOS share sheet. I need to share the image through a URL to a local file, since I want the image to be named a certain way when shared, and that's the only way I found I could do that.…
Yariv Adam
  • 844
  • 9
  • 24
10
votes
1 answer

Is there a way to send a calendar event via UIActivityViewController?

The title pretty much says it all. What follows is my best guess, but the event just doesn't appear at all. NSArray *items = @[string, URL, (EKEvent *)[self createCalendarEvent]]; UIActivityViewController* activity = [[UIActivityViewController…
Voltron
  • 431
  • 7
  • 19