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

UIActivityViewController and UIImage preview

I'm trying to share an images using UIActivityViewController (on iMessage, Telegram, WhatsApp and other). I'm doing: let image = ... // an image let activityViewController = UIActivityViewController(activityItems: [image], applicationActivities:…
PGLongo
  • 439
  • 4
  • 13
-1
votes
1 answer

UIActivityViewController's apps won't get selected

So, I created a basic activity view controller with the most needed parameters and it gets called, as expected, BUT! After presenting you can't tap on any item, except 'Cancel' on the bottom. Looked around on several sites, in debug mode, etc, no…
Zsolt
  • 49
  • 8
-1
votes
1 answer

In Xcode, UIActivityViewController does not display any options as in sharing on social media such as sharing on Facebook, Twitter, etc

I tried including UIActivityViewController in my Xcode project (swift), but as I ran the app in the simulator, the UIActivityViewController didn't include any options of sharing the content (I thought once you include it you can get all the options…
-1
votes
2 answers

How to use UIActivityViewController, sharing data from HTML parsing out the article (article contains images and forms)?

Here is my code: How to sharing data from html parsing ? UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:@[webView] applicationActivities:nil]; if ([[UIDevice currentDevice].model…
HeroG
  • 20
  • 6
-1
votes
1 answer

How to pass API and fetched data to UIActivityViewCollector

I am using a table view and i am using it to display clips which i am fetching from core data. Now i have an API for clip path which will connect it to the server clips i want to pass clip id with that API and pass the clip name fetched from the…
vicky
  • 253
  • 2
  • 14
-1
votes
1 answer

How to embed a URL in a string while posting on Facebook using UIActivityViewController?

I want to share a URL on Facebook and Twitter using UIActivityViewController. The problem is the URL is very long. Can I give a hyperlink or shorten it somehow?
Rahul Patel
  • 1,822
  • 12
  • 21
-1
votes
2 answers

__NSCFConstantString _beforeActivity for Custom Activity in iOS?

I want to share image,link through own app as activity type is used subclass UIActivity class and used this action method code NSString *message = [NSString stringWithFormat:@"%@\n",[self.dataModel artLook_Title]]; UIImage *imageToShare…
Avijit Nagare
  • 8,482
  • 7
  • 39
  • 68
-1
votes
2 answers

How to set custom size for UIActivityViewController modal?

I am using UIActivityViewController for social sharing in my app, for iPhone UIActivityViewController modal is being used like this: UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:activityItems…
Jillian
  • 129
  • 1
  • 9
-1
votes
1 answer

How to handle click of types of UIActivityController in iOS?

In my application want to handle click of UIActivityTypePostToFacebook. So how to achieve this click event. Please check my code : #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v…
Monika Patel
  • 2,287
  • 3
  • 20
  • 45
-1
votes
1 answer

Why my message is shared twice in viber, I have used UIActivityViewController

I have used UIActivityViewController for sharing my message in Facebook, Twitter, Viber etc....It seems the message is send twice in Viber but for others are ok. Can u please help me?? I have used the code given below... -(void)shareContent { …
user3433733
-1
votes
1 answer

How to include an Objective-C Extension in my Swift ActivityViewController?

I have included the 1Password extension in my Browser app by following this question. However, I already have an iOS 8 Share Sheet (ActivityViewController) on my app and would like to include the 1Password inside this share sheet inside of using…
-1
votes
1 answer

exc_bad_access code=1 address=0*0 when using UIActivityviewController in iphone

Here is my code where I use to share an image vaia facebook: NSArray *array = [NSKeyedUnarchiver unarchiveObjectWithData:archive]; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:array …
Reyjohn
  • 2,654
  • 9
  • 37
  • 63
-1
votes
1 answer

How can you add a custom social network to UIActivityViewController

Possible Duplicate: Problems adding custom activity to UIActivityController I have a working UIActivityViewController in my iOS 6 app that is being used to show the standard social applications (email, Facebook, Twitter, and iMessage). I am…
lehn0058
  • 19,977
  • 15
  • 69
  • 109
-1
votes
1 answer

UIActivityViewController 101 - Anything will be helpful

Possible Duplicate: UIActivityViewController - Email and Twitter sharing I'm starting to get familiar with the new iOS 6 way to share: UIActivityViewController (the same as when you share a photo from the native iOS photo app), but I'm…
anthoprotic
  • 827
  • 2
  • 13
  • 24
-2
votes
1 answer

Sharing image from camera roll with Instagram, Facebook

I have an AR app, developed xcode 9 using ARKit. I have a button which takes a screenshot of the users view and it saves the image done to the photos (camera roll). I would now like to have a share button and allow the user to share the last image…
1 2 3
83
84