문제

I am trying to find out how to change the text and arrow color of the UINavigationBar buttons.

I know how to change the titleTextAttributes but cannot find out how to do it to the buttons.

For example this is how I change the titleTextAttributes inside my AppDelegate

self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor redColor]};

I have looked through the UINavigationBar docs and cannot find any button attributes so not sure what to do here.

도움이 되었습니까?

해결책

to change the text color and the color of the arrow in the navigation bar you can use this code (iOS 7):

self.navigationController.navigationBar.tintColor = [UIColor redColor];

this code will also change the color of the buttons

다른 팁

You can globally change it as easy as thisenter image description here

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