开发者

Transform Navigation Based to Tab Bar Based app

i've a problem. I have to add an UITabBarController to my Navigation Based application. When i open MainWindow.xib and add a UITabBarController is all ok. But there's a problem. When i run the app the table view is completely disoriented and rows will not show correctly. This happen only with tab bar co开发者_Go百科ntroller insert in MainWindow.xib . Without it all shows correctly. Anyone can help me?


You may need to adjust the frames of all your other views. In your .xib files in interface builder, click the root View and go to attributes inspector (CMD-1), and in "Simulated User Interface elements / Bottom Bar" select "Tab Bar". For any views created in code, you'll need to reduce the height of your frames perhaps as well to account for the smaller viewing area.


Generate a new tab bar project of the same name in a different directory, then copy over your delegate (.h and .m) and your MainWindow.xib. Without any code, it is most likely an error in your delegate.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜