简体   繁体   English

如何将Peek&Pop添加到未分配给按钮的序列中

[英]How to add Peek&Pop to a segue not assigned to a button

I have a segue that is not assigned to any button in the interface builder, but I do call a [performSegue segueWithIdentifier@""] when tapping in dynamic created button. 我有一个未分配给界面生成器中任何按钮的segue,但是在点击动态创建的按钮时,确实会调用[performSegue segueWithIdentifier@""]

Is there a way to enable the peek&pop on those dynamic created buttons? 有没有办法在这些动态创建的按钮上启用“ peek&pop功能?

Thank you so much! 非常感谢!

You need implement methods of UIViewControllerPreviewingDelegate. 您需要UIViewControllerPreviewingDelegate的实现方法。 See details here 在这里查看详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM