【发布时间】:2011-05-09 00:43:33
【问题描述】:
我有以下代码:
- (IBAction)showDirectMessage:(id)sender
{
DetailMessageViewController * dmvc = [[DetailMessageViewController alloc] init];
dmvc.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:dmvc animated:YES];
}
我在这里要做的是呈现一个顶部有一个 NavigationBar 和一个 UITableView 作为内部视图的视图。但是到目前为止,它只显示 UITableView。我对我需要改变什么感到困惑。在我的 DetailMessageViewController IB 中,我拖入 UINavigationController 并将 UITableView 作为视图放入内部。但是,我将 UINavigationController 连接到 UITableView 视图的.. 我认为这是错误的。我不知道我该怎么做。有人可以指导我吗?
【问题讨论】:
标签: iphone objective-c ipad