【发布时间】:2012-02-06 17:37:02
【问题描述】:
需要一些帮助来弄清楚如何将一些文本(UITextView?)添加到 UITableView 详细视图。屏幕截图显示了一个空白区域,我需要在其中添加 UITextView。
这是我的截图:
这是我分配 UITableView 详细标题值的方法。
//MainViewControler.m
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIViewController *detailsViewController = [[UIViewController alloc] init];
// get detail view controller "title" value
detailsViewController.title = word.term;
[[self navigationController] pushViewController:detailsViewController animated:YES];
[detailsViewController release];
}
谢谢!
【问题讨论】:
-
你的意思是当你点击 UITableView Cell 时,你会得到这个页面吗?
标签: ios uitableview uiviewcontroller