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

How to know if user shared my app or not?

My app is all about getting points and winning money, and what I need to do is let the user share my app then give him some points. The problem is that I don't know how to detect if the user truly shared the app or not I'm using the following…
Abdulrahman Alhayek
  • 1,626
  • 2
  • 15
  • 20
9
votes
1 answer

IOS swift how to know when activityViewController has been successfully used

I have a tableView that utilizes the UIActivityViewController so users can share content on other 3rd party networks Facebook, twitter, text message etc. I have a function called IncreaseShareByOne() and it's purpose is to count the number of times…
Rome Torres
  • 1,061
  • 2
  • 13
  • 27
9
votes
4 answers

Share app link to by ActivityViewController iOS swift?

My app is not Live yet. I got the app ID from the App Store Connect. I want to share the app link on social media apps. I used the UIActivityViewController: let string1 = "itms-apps://itunes.apple.com/app/idXXXXXXX" let url = NSURL(string:…
Avijit Nagare
  • 8,482
  • 7
  • 39
  • 68
9
votes
9 answers

UIActivityViewController has a weird size and shape

I just got this bug report for me app...the activity view controller is suddenly this weird narrow shape whether I'm on an actual phone or the view controller. This is happening with some plain vanilla code that hasn't been touched in…
helloB
  • 3,472
  • 10
  • 40
  • 87
9
votes
1 answer

UIActivityViewController Subject not working for Outlook

Foe setting subject of share, overriding func activityViewController(activityViewController: UIActivityViewController, subjectForActivityType activityType: String?) -> String { return "mySubject" } not working for outlook app,…
BaSha
  • 2,356
  • 3
  • 21
  • 38
9
votes
1 answer

Sharing a text file with UIActivityViewController

I'm attempting to share a text file with a UIActivityViewController. I'm creating and writing to my file in my app, and then allowing the user to share this file using whatever means they would like. Currently I can access the file like this: let…
samturner
  • 2,213
  • 5
  • 25
  • 31
9
votes
5 answers

IOS 8 iPad App Crashes When UIActivityViewController Is Called

When a UIActivityViewController is called on the iPhone in this app, it works perfectly, but when called on a iPad, the app crashes. Below is the code I used: func shareButtonPress() { //when the share button is pressed, default share phrase is…
tdh
  • 884
  • 1
  • 11
  • 22
9
votes
3 answers

UIActivityViewController issue iOS 7 and iOS 8?

I’m building an article reading app for iPad. I have integrated a social sharing functionality which means user can share articles on Facebook, and google mail. I’m using UIActivityViewController for sharing. There is a bar button item,when user…
Daljeet
  • 1,573
  • 2
  • 20
  • 40
9
votes
2 answers

How to cancel UIActivityItemProvider and don't show activity?

I'm using UIActivityItemProvider subclass to provide custom data. But sometimes getting data fails and I don't want to present activity (e.g. message composer). Tried [self cancel] and return nil; in item method, but message composer still shows…
feduza
  • 101
  • 3
9
votes
2 answers

Twitter icon not showing in UIActivityViewController in iOS 7 on the device

I am using a UIActivityViewController to share info from my app to Twitter and FB, which are properly configured in Settings. The code is the simplest possible: - (IBAction)share { NSString *postText = @"some text"; UIImage *postImage =…
Maiaux
  • 965
  • 9
  • 19
9
votes
8 answers

How to share my current location to UIActivityViewController?

I know i can add things like text, URL, images to UIActivityViewController , but how to add my current location with a thumbnail of my location like in the tweet shown below ? in other words how to share coordinates "latitude,longitude" in…
4mahmoud
  • 813
  • 2
  • 19
  • 31
9
votes
1 answer

Customise printing with UIActivityViewController

I've been using UIPrintInteractionController to print images in my app and it's worked out fine, since I can customise the page so that it prints with the appropriate margins. I'm attempting to make use of the UIActivityViewController to do the…
SMSidat
  • 1,163
  • 1
  • 15
  • 34
9
votes
1 answer

Exclude AirDrop and Add to Reading List from apps build with iOS 6 SDK

I have a UIActivityViewController in my iOS 6 app, I am pushing an update but I'm not yet compiling it with iOS 7 SDK. Is there any way to disable Add to Reading List and AirDrop in my UIActivityViewController in iOS7 without recompiling with iOS 7…
Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156
9
votes
1 answer

UIActivityViewController with integrated gallery (like in the stock Photos iPad app)

If you launch the Photos app on iPad (iOS7) and tap the action button, you get a UIActivityViewController whose top half is made of a multi-select gallery, from within which you can select any number of items. The sharing options automatically…
Clafou
  • 15,250
  • 7
  • 58
  • 89
9
votes
5 answers

Facebook, Twitter icon not showing in UIActivityViewController on iOS7

I have added this code for presenting a UIActivityViewController: -(IBAction)activityAction:(id)sender { UIActivityViewController *activityViewController = [[UIActivityViewController alloc]initWithActivityItems:[NSArray arrayWithObjects:@"Hello…
karthika
  • 4,085
  • 3
  • 21
  • 23