如何消除导航栏顶部的间隙?

时间:2019-09-04 17:26:07

标签: ios swift xcode

差距在某种程度上取决于后退功能。如果我下拉导航栏,应用程序将返回上一个视图,但是我不希望该选项返回到一个视图。

我不知道在哪里搜索。

Screenshot

如果图片不起作用。这是链接:https://www.dropbox.com/s/3tse4oehn6o47bw/IMG_9159.PNG?dl=0

1 个答案:

答案 0 :(得分:0)

尝试将UIViewController的{​​{1}}属性设置为modalPresentationStyle

https://developer.apple.com/documentation/uikit/uiviewcontroller/1621355-modalpresentationstyle