CosmicMind / Material

A UI/UX framework for creating beautiful applications.
http://cosmicmind.com
MIT License
11.99k stars 1.26k forks source link

TabBarItem Not Show #1066

Closed tanakorn-dev closed 6 years ago

tanakorn-dev commented 6 years ago

Hi, I am code from your sample project but I have problem.

screen shot 2018-05-04 at 09 22 50 screen shot 2018-05-04 at 09 23 07

Please help me.

daniel-jonathan commented 6 years ago

Hey! May I see your AppDelegate that sets up the TabsController?

tanakorn-dev commented 6 years ago

@danieldahan This is my AppDelegate.

screen shot 2018-05-04 at 23 08 08 screen shot 2018-05-04 at 23 08 57
daniel-jonathan commented 6 years ago

Okay, so the first view in the hierarchy that will be looked for using the TabsController is actually the UINavigationController. The line:

self.homeNavi = ...

So put the TabItem code in there, by subclassing the UINavigationController.

That's it. In the future, I will make a feature that sniffs lower in the hierarchy, but for now, it uses only the first controller it detects.

If you have any further issues, please reopen this issue. Thank you!