How to create a Navigation based application without a uitableview
I am trying to create a Navigation based application and as you most likely know the rootviewcontroller has a uitableview in it.. I would like to 开发者_如何学Pythonchange this so its just a standard uiview however everything I have tried so far keeps giving me errors, so I am wondering if someone can help me out.
First of all you create navigation based application and then delete TableView from rootViewController.xib and take it view from library and connect it and more thing is that to insert uiviewcontroller instead of uitableview in rootviewcontoller.h file and build & run your project its work fine.
@interface YourController : UIViewController
and replace tableview with UIView and connect it with files owner.. and remove delegate and datasource methods for UItableView.
You can put any UIViewController (even with a plain UIView, no table view) inside a UINavigationController. You can even do this simply by dragging a UIViewController into the tab bar in your interface file. If you post more information about the errors you're seeing, we can help debug further.
精彩评论