Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top