문제

Is there a way to change the default back button's color blue to my own specified color without having to set it as an image? I want to implement this using Ruby Motion.

도움이 되었습니까?

해결책

The simplest way to do that would be inside your view controller's viewDidLoad method, where you would chance the tint color of the navigation bar.

self.navigationController.navigationBar.tintColor = UIColor.redColor

If you want all navigation bars to have their tintColor set to a color, you can also use UIAppearance.

UINavigationBar.appearance.tintColor = UIColor.redColor

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top