Set background color for UINavigationBar

前端 未结 9 618
滥情空心
滥情空心 2020-12-18 07:07

I want to develop UINavigationBar and also set background color for that. I have created the UINavigationBar but I have problem with setting backgr

9条回答
  •  一个人的身影
    2020-12-18 07:39

    You can customize a UINavigationBar with the following propertys:

    • @property(nonatomic, assign) UIBarStyle barStyle
    • @property(nonatomic, retain) UIColor *tintColor
    • setBackgroundImage:forBarMetrics:
    • @property(nonatomic, copy) UIColor *backgroundColor

    For more methods and propertys please check the class reference of UINavigationBar and UIView

提交回复
热议问题