如何在代码中修改Storyboard默认值,修改非导航控制器根视图的modalPresentationStyle
Storyboard默认属性修改操作说明
如果需要修改Storyboard中预设的默认属性值,可参考下方属性配置截图:
针对不属于导航控制器根视图的普通视图,将其modalPresentationStyle属性设置为.popover即可,对应实现代码如下:
modalPresentationStyle = .popover
modalPresentationStyle属性的相关说明可参考下方截图:
内容的提问来源于stack exchange,提问作者Edward J
相关产品推荐
相关产品推荐

