1
我在我的iOS Swift應用程序中實現了一些窺視UIPreviewActions。但是,這些行爲會執行被忽略的延期交易。我怎麼能做到這一點?3DTouch UIPreviewAction:performseguewithidentifier not working
有一個類似的問題,但在Objective-C:UIPreviewAction to Mail From Peek
override func previewActionItems() -> [UIPreviewActionItem] {
let performSegueAction = UIPreviewAction(title: "Go To View", style: .Default) { (action, viewController) -> Void in
self.performSegueWithIdentifier("segueID", sender: self)
}
return [performSegueAction]
}