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

UIActivityViewController Crash

i have no idea why the uiactivityviewcontroller crash when i use the prensentViewController method. it is weird, anyone has any clue? the program is running fine not untile when i use the presenviewcontroller. #import…
RickChi
  • 3
  • 1
0
votes
1 answer

UIActivityViewControlller hyperlink

How can I share a hyperlink using UIActivityViewController. Currently I am using html tags inside the NSString. For the email, the hyperlink works fine but for Twitter, Facebook, Message activities, i get the raw text. How can I add a hyperlink to…
Mihai Popa
  • 892
  • 1
  • 8
  • 25
0
votes
1 answer

Unable to retrieve NSData within NSDictionary, which has been written to file

I've got an NSData object, that I am placing inside a dictionary. I am then writing the dictionary to the documents directory. Then I'm immediately making the URL to the file available to the uiactivityviewcontroller so that it is included for…
SMSidat
  • 1,163
  • 1
  • 15
  • 34
0
votes
1 answer

How do we know what gets done with data objects passed to UIActivityViewController?

For example, the documentation for UIActivityTypeAirDrop states When using this service, you can provide NSString, NSAttributedString, UIImage, ALAsset, and NSURL objects as data for the activity items. You may also specify NSURL objects whose…
Marty
  • 5,926
  • 9
  • 53
  • 91
0
votes
1 answer

Posting Pdf from facebook and twitter activity controller

I have a code that converts my UIView to pdf. Now I want to be able to use this PDF in the UIActivityController for Facebook and Twitter integration. I don't know how to go about it, but the code for the PDF is displayed…
0
votes
1 answer

How to attach files to UIActivityTypeMail?

I like to share files (images, videos, pdf, plist, txt…) with UIActivityViewController, I am trying to share a NSData object, but it wont work. If I replace the NSData with UIImage it works. Is it possible to add this to the…
David Gölzhäuser
  • 3,525
  • 8
  • 50
  • 98
0
votes
1 answer

App crash customizing UIActivityViewController

I'm trying to add a custom action to the cancel button so that I can show banners again after done with the UIActivityViewController. [self presentViewController:activityController animated:YES completion:nil]; [activityController…
user2667306
  • 45
  • 1
  • 6
0
votes
1 answer

Disable text editing UIActivityViewController

I'm developing a game where results are shown to user in UIAlertView and users can share the results. Is there any way to "lock" the text that application provides so that users cannot cheat and change their results.
imas145
  • 1,959
  • 1
  • 23
  • 32
0
votes
1 answer

Share A High Resolution Image

Here's my code: - (void)shareButtonTapped { CGSize newImageSize = CGSizeMake(850.0, 850.0); UIGraphicsBeginImageContextWithOptions(newImageSize, YES, _aImageView.image.scale); [self.aImageView.layer…
Luke Irvin
  • 1,179
  • 1
  • 20
  • 39
0
votes
1 answer

UIActivityView doesn't display other apps as option to open pdf

I'm displaying a PDF in my app and I want to have to same "openIn" functionality as the default iOS mail client. The code I have is as follows: NSURL *url = [NSURL…
Ludicrous
  • 33
  • 6
0
votes
1 answer

UIActivityViewController, pinterest

I am trying to add pinterest to the UIActivityViewController in iOS 6, I couldn;t find any documentation on it or on how to make custom addition to the UIActivityViewController for some social networking. Any ideas?
funkycoldmedia
  • 131
  • 4
  • 16
0
votes
1 answer

UIActivityTypeCopyToPasteboard How to attach Image and Text

I'm using the UIActivityViewController, and I have two items of data that I share. One is some text, and the other is an image. When I use the UIActivityTypeCopyToPasteboard, it always just copies the text component and not the image. I thought it…
Jacob Joz
  • 732
  • 1
  • 11
  • 29
0
votes
1 answer

How to remove some option from the iOS Native Sharing abilities?

I am working on a game for iOS and would like to know how remove some of the native options iOS offers when sharing automatically, such as "assign to contact" & "print". I have done a lot of research on this, the closest I could find is a suggestion…
0
votes
1 answer

Am I understanding the UIActivityViewController wrong?

from my opinion, I can pass text, images etc. to the UIActivityViewController and it will show exactly these apps, that can handle the file types I´m passing in. But it isn´t behaving like that! It´s just showing the standard apps Mail, Messages,…
stk
  • 6,311
  • 11
  • 42
  • 58
0
votes
1 answer

Memory Leak in UIActivityController

I have isolated a memory leak to the setExcludedActivityTypes array. See code below: - (void)postToFacebook:(UITapGestureRecognizer *)sender { NSString *postText = socialString; UIImage *imageToPost = [self captureTheScreenImage]; …
MplsRich
  • 137
  • 1
  • 13