how to fire the tabs in a custom uitab bar

老子叫甜甜 提交于 2020-01-07 01:48:57

问题


I created a custom UITabBar, like this:

and I want when the user clicks on any tab, to open the corresponding content, (which is in both cases tableView)

i thought that i have to add two view controllers and then call them whenever a bar clicks. so i ended up like this:

then i saw my problem, i am not loading the content of the view controller inside but when a user clicks in my case now, a new view controller opens. what am i missing please?

来源:https://stackoverflow.com/questions/34245150/how-to-fire-the-tabs-in-a-custom-uitab-bar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!