表视图加载子视图?

时间:2011-07-04 19:26:08

标签: iphone objective-c xcode uitableview uiview

当用户点击表视图单元格时,我想将UIView推入表格视图的位置,将当前顶部条形项目交换为只有一个“后退”按钮以返回到原始视图,并删除底栏。我怎么能这样做?

这是结构:

enter image description here

这就是它的样子:

enter image description here

这是在单击表格视图单元格后的样子:

enter image description here

感谢您的帮助!

2 个答案:

答案 0 :(得分:3)

您似乎想要UINavigationController的确切行为。看看文档: UINavigationController ReferenceView Controller Programming Guide for iOS (Navigation Controllers)

答案 1 :(得分:0)

使用管理2 UINavigationController的{​​{1}}(上述每个视图对应一个)。然后按下并弹出(在导航中前后移动)使用

UIViewController

self.navigationController pushViewController:(UIViewController *) animated:(BOOL)

相关问题