문제

I am making an tabbar application.

The icons, I have which is just a border --> This is what i have

and i want this on select -->Filled

Setting the tint color just colors up the border.

How do i achieve this.

Note: I dont want to use two images, there is a better way to do it, as all apps-app store, music, Clock, Whatsapp, Facebook, Twitter use it.

도움이 되었습니까?

해결책

just use setting your item as follows:

[controller.tabBarItem setFinishedSelectedImage:[UIImage imageNamed:@"ask_b"] withFinishedUnselectedImage:[UIImage imageNamed:@"ask"]];

the ask_b is the filling icon image. the system will not filling for you automatic, it's only support tint.

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