Changing the height of the Navigation bar iOS Swift

前端 未结 3 1989
忘掉有多难
忘掉有多难 2020-11-27 21:40

I am trying to change the height of there navigation bar for my app. Currently the height is fixed to 44. I can change the width from Xcode but not the height.

I ha

3条回答
  •  情歌与酒
    2020-11-27 22:35

    I know this makes no sense, however this is what I did ( worked without laying down constraints ).

    1. select your View Controller.
    2. Open Show the attributes inspector
    3. for top bar select any tab bar (I'm choosing translucent Tab Bar).
    4. within the show the object library drag and drop the navigation item on the View Controller. (If done right, should look like image 3)
    5. Additionally ( fyi ), you can add a constraint to your button, etc. with using no margins and top being set to 0.

提交回复
热议问题