开发者

a view containing UITableView and UITabBar

I am using UINavigationController to push and pop other UIViewControllers in my app. In one of the UIViewControllers I am using UITabBar to switch between different views. One of the view has UITableView and I am having difficulty showing the tabBar at the bottom. Even if it shows up it scrolls up and down with the tableCells. I didn't use the tabbarcontroller because apple documentation recommends开发者_如何学Go not to push tabbarcontroller on to navigationcontroller stack.

Thank you.


I guess that you are using UITableViewController. The View of the UITableViewController is the tableView itself, so when you add the tab bar to the view you actually add it to the table view. that is why it scrolls with it.

you should create a regular UIView, and then add the tableView and the tab bar to that view.

shani

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜