質問

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