What is the default background color of the navigation bar in iOS 7?

后端 未结 8 1459
星月不相逢
星月不相逢 2020-12-31 00:45

I would like to set the background color of a menu to that of the navigation bar. What is the best way to do this?

8条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 01:03

    To get the tint color of a navigation bar, do this:

    [aNavbar barTintColor]
    

    By using this when you set the background color of your menu, you will not have to change it in case you change your navigation bar tint.

提交回复
热议问题