Questions tagged [uipreviewaction]
5 questions
3
votes
1 answer
Adding an icon or image on a UIPreviewAction
I wonder if there is any way of adding an icon to the quick actions associated with a peek & pop preview (reachable through 3D touch).
I have created a couple of preview actions using:
UIPreviewAction(title: "Save".localized, style: .Default)
but I…

Anonymous Dev
- 29
- 7
2
votes
1 answer
How to show preview like in Twitter in Objective-C
I'm working on UIViewControllerPreviewing in Objective-C, Peek and pop working fine but I need like Twitter 3D Touch like below Image, I mean I need options when we use 3D Touch.
But using UIViewControllerPreviewing, I'm unable to achieve this.

Bittoo
- 579
- 7
- 21
1
vote
1 answer
Why does my app crashes when I tap "Save Image" option on UIActivityViewController?
So, in the 3D Touch peek controller, I have this computed var where I setup the UIPreviewAction:
override lazy var previewActionItems: [UIPreviewActionItem] = {
let save = UIPreviewAction.init(title: "Share Image", style:…

Adauto Pinheiro
- 81
- 1
- 7
0
votes
1 answer
unrecognized selector with UILocalizedIndexedCollation.current().section(for:collationStringSelector:#selector(getter: UIPreviewAction.title))
This code I use with my indexing feature on a table view is generating a runtime error:
let collation = UILocalizedIndexedCollation.current()
sectionNumber = collation.section(for: tssContact, collationStringSelector: #selector(getter:…

daniel
- 1,446
- 3
- 29
- 65
0
votes
1 answer
Why is UIPreviewActionStyle destructive title not red?
I am implementing 3D Touch Peek and pop preview actions in my application.
Here is what I have in my ViewController that gets used for the peek and pop.
var previewActions: [UIPreviewAction] {
let item1 = UIPreviewAction(title: "Item1", style:…

crashoverride777
- 10,581
- 2
- 32
- 56