开发者

How do load a tab bar controller inside a view

开发者 https://www.devze.com 2023-04-03 06:56 出处:网络
I would like to know how to load a tab bar controller into a view, but i keep hitting this error. \"\'-[UIViewController _loadViewFromNibNamed:bundle:] loaded the \"browseVi开发者_Python百科ew\" nib b

I would like to know how to load a tab bar controller into a view, but i keep hitting this error. "'-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "browseVi开发者_Python百科ew" nib but the view outlet was not set.'"

What I'm trying to do is, create a splash screen (UIView) with 5 buttons and when clicked, it'll load a UITabBarController with 6 tab bar items.

Please help.. :(


Not possible. This question has been answered thus many times. A tabbarcontroller should be the root controller.

You could create the app so that when it loads it creates a uiview, adds it to the window and when the user clicks a button it removes this view from the window and creates programmatically a tabbarcontroller and it's child controllers and adds that to the window.


You may try presenting the tabbarcontroller as a modal view though.

0

精彩评论

暂无评论...
验证码 换一张
取 消