How In-Call status bar impacts UIViewController's view size?

后端 未结 3 1813
傲寒
傲寒 2020-12-03 03:24

I\'m trying to understand how the view associated to a UITabBarController, UINavigationController or UIViewController rea

3条回答
  •  执笔经年
    2020-12-03 03:45

    The height of the view when the In-call status bar is toggled depends on the way it's anchored.

    Play around with the autoResizingMask of the UIView to control whether the view should move down or resize when the in-call status bar shows up.

    These two properties,

    UIViewAutoresizingFlexibleTopMargin
    UIViewAutoresizingFlexibleHeight  
    

    will help you. The first one pushes the view down, the second one changes the size.

提交回复
热议问题