【发布时间】:2011-02-08 15:41:28
【问题描述】:
当我向 UITableViewController 添加子视图时,它似乎位于 tableview 下方。我可能错误地加载了我的子视图,或者在错误的地方调用了addSubview。我指的子视图是标签栏上方的红色区域,其中还包含“点击我”按钮:
您可以看到细胞系有点重叠。这是我在 TableViewController 中添加子视图的地方:
- (void)viewDidLoad {
[super viewDidLoad];
CGRect hRect = CGRectMake(0, 170, 320, 480);
HomeScreenOverlayView *homeView = [[HomeScreenOverlayView alloc] initWithFrame:hRect];
[self.tableView addSubview:homeView];
[homeView release];
}
有什么想法吗?谢谢!
【问题讨论】:
标签: iphone uitableview addsubview