Non-fullscreen UINavigationController

后端 未结 4 1259
臣服心动
臣服心动 2021-02-20 12:25

Is it possible to use a UINavigationController in such a way that it doesn\'t use the full window?

I\'ve tried setting it\'s view\'s frame as well as adding it\'s view t

4条回答
  •  一个人的身影
    2021-02-20 12:45

    This is hard to answer because it's complicated.

    On iPhone, you cannot have a UINavigationController that is shorter than the screen. So if you'd like to show an ad banner, show it above the bottom toolbar or below the top navigation bar.

    On iPad you can have two UINavigationControllers side by side, but in my case, they still take the entire height of the screen. Given the behavior of iPhone I didn't try to modify the height behavior on the iPad.

提交回复
热议问题