Change UINavigationBar Height

前端 未结 12 1522
囚心锁ツ
囚心锁ツ 2020-11-28 09:26

Can some one tell me how to change the navigation bar height?

Here is what i have so far:

CGFloat navBarHeight = 10;
self.navigationController.navi         


        
12条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 09:58

    self.navigationController.navigationBar.frame is a readonly property on iOS version 4.x

    it will be changed even though, you will see abnormal behavior.

    for example, when app state changed to background and get back to foreground the Navigation bar will show original sized height

提交回复
热议问题