Questions tagged [uiactivityitemprovider]
11 questions
6
votes
1 answer
iOS Custom attachment not opening directly from Messages
I've got a custom file UTI attachment almost working in my App when sharing as a message. It embeds the file as an attachment with the correct file type of 'kitlist' in the message and is received on both iPads and iPhones. If you tap on the…

Nick
- 4,820
- 18
- 31
- 47
5
votes
1 answer
Swift Share Extension not shown for PDFs
Using Swift5.3.2, iOS13.0,
My Share Extension is working for images and videos.
However it does not work for PDFs.
The problem is that my App is not visible in the list of Share-Apps for a PDF document that I am trying to share with my App.
I know…

iKK
- 6,394
- 10
- 58
- 131
3
votes
1 answer
App Crashes After Canceling Print Activity
My app supports printing. If the user cancels the Printer Options modal view controller, the app crashes somewhere in Apple's code with a message of _WebTryThreadLock(bool) ... Tried to obtain the web lock from a thread other than the main thread…

Steve Liddle
- 3,685
- 3
- 27
- 39
2
votes
0 answers
iOS - Swift - Problems pasting in files (pdfs, docx) using UIPasteboard from Apple's mail attachment
I am working on an app that allows the user to paste files (such as .pdf and .docx) into the app. I have it working well, except for when the file is copied by long-pressing an attachment in the native Mail app.
I know the file isn't the problem,…

Andy Novak
- 378
- 5
- 11
2
votes
1 answer
UIActivityViewController "Save to Files" saves multiple files when only 1 file is required
My app is able to provide a variety of UIActivityItem types (text, data, rich text, print page renderer, etc) for sharing for a variety of purposes, including printing, copy/paste, and saving as a file. For the purpose of copy/paste, it needs to…

Son of a Beach
- 1,733
- 1
- 11
- 29
2
votes
1 answer
IOS/Objective-C: UIActivityItemSource Protocol for customizing share messages with UIActivityViewController
Apple Docs say that you can use the UIActivityItemSource protocol to customize messages shared with the UIActivityViewController in lieu of a UIActivityItemProvider Object:
UIActivityItemSource
You can use this protocol in situations where you…

user6631314
- 1,751
- 1
- 13
- 44
2
votes
2 answers
Sharing to Instagram does not work using the `UIActivityItemSource` protocol
I share text and an image using the UIActivityViewController. The image is from activityImage which is an UIImage(). The custom text is from activityText() which is returned from an UIActivityItemSource protocol.
The trouble is, Instagram is only…

user4806509
- 2,925
- 5
- 37
- 72
2
votes
1 answer
Add to iCloud Drive with UIActivityViewController
I would like to use UIActivityViewController's "Add to iCloud Drive" action pictured here to upload a file that I store on the iOS device:
Currently in my custom UIActivityItemProvider class I have my - (id)item method returning this:
…

HawkEye1194
- 298
- 1
- 3
- 14
2
votes
1 answer
Xcode 8 beta 6 UIActivityItemProvider error with @objc compatibility
Trying to implement a UIActivityItemProvider in Xcode 8 beta 6. After changing this method from a String parameter to UIActivityType, now get this error:
Method cannot be an @objc override because the type of the parameter 2 cannot be represented…

Jason Hocker
- 6,879
- 9
- 46
- 79
1
vote
0 answers
SDWebImageDownloader returns nil value
SDWebImageDownloader returns nil instead of SDWebImageOperation object. Some code below.
class PictureProvider: UIActivityItemProvider {
private var originalLoadingOperation: SDWebImageOperation?
fileprivate func loadOriginalImage(with…

Ivan
- 11
- 2
0
votes
1 answer
How to add multiple email attachments using UIActivityItemProvider
I'm working on an iOS app in which I want to add MULTIPLE attachments to an email using UIActivityItemProvider. I want to do it using UIActivityItemProvider because I do not want to incur the overhead of processing the record before I display the…

KeithTheBiped
- 832
- 10
- 21