简体   繁体   中英

Custom tab bar icon not “filled in” when selected

I've created a custom tab bar icon and made sure to set the background to transparent. The outline of the icon highlights when selected, but doesn't fill as system icons do.

From the Human Interface Guidelines manual:

Provide two versions of custom tab bar icons. Provide icons for both the selected and unselected states. The selected icon is often a filled-in version of the unselected icon, but some designs call for variations to this approach.

My question is after I created the two versions of the icon as directed, how do you set it?

Using storyboard you need to select your tabViewController and define the tab item properties according your needs

在此处输入图片说明 在此处输入图片说明

Hope this helps you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM