Use present as popover in a universal storyboard

随声附和 提交于 2019-12-06 05:04:33

In WWDC session Apple engineer used "Present as popover" segue. This one shows view modally on iPhone and popover on iPad. Though, you'll have to write some code to show Back button on iPhone.

If you need to have popover and push segues, I'd do that in code this way:

  1. Make 2 segues 'Present as popover' and 'Show'
  2. Set up segue identifiers
  3. In code identify whether app running on iPhone or iPad
  4. Launch correct segue
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!