hollance/MHTabBarController

Ability to add icon to the tab bar?

burakkilic opened this issue · 3 comments

Hi;

I want to show some icons in the tab bar. As far as I know, we can only set title. How we can add icons?

The tab bar doesn't support this currently but you can add support for this by placing images on the buttons. Each tab has a UIButton.

Thank you. I see that tabs are UIButton and buttons have image property. Problem is how can I pass it from view controllers?

You could (ab)use the UITabBarItem for this.