【发布时间】:2017-09-06 22:02:48
【问题描述】:
在我的ViewController 中有一点UIView。如何以编程方式创建 TableView 而不是这个“蓝色”UIView。
我的UIView 有这个代码。
self.viewForTableView = [[UIView alloc] initWithFrame:CGRectMake(self.view.frame.size.width/2,
self.navigationController.navigationBar.frame.size.height,
self.view.frame.size.width/2,
self.view.frame.size.height)];
self.viewForTableView.backgroundColor = [UIColor blueColor];
[self.view addSubview:self.viewForTableView];
这就是我想要的preview。
【问题讨论】:
标签: ios objective-c iphone uitableview uiview