Changing the Tint Color of UIBarButtonItem

后端 未结 8 1891
暗喜
暗喜 2020-12-15 03:31

I have a project using Storyboards and whenever I push a view controller with a segue, the dynamically created bar button item is always blue.

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 03:54

    To change the color of a specific item (e.g. a button) in your nav bar: In Objective-C

    myButton.tintColor = [UIColor redColor];
    

提交回复
热议问题