문제

I have changed the default blue color of some selected text with setTitleTextAttributes. However, the image still becomes blue when selected.

enter image description here

How can I change this behavior?

도움이 되었습니까?

해결책

I would use UIAppearance.

[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]];

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