- (UITableView*)tableView
{
if (!_tableView)
{
_tableView=[[UITableView alloc]initWithFrame:CGRectMake(0, 64, __kScreenWidth, __kScreenHeight - 64)];
_tableView.delegate=self;
_tableView.dataSource=self;
_tableView.showsVerticalScrollIndicator = NO;
_tableView.backgroundColor = __kColorWithRGBA(250, 250, 250, 1);
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
[self.view addSubview:_tableView];
}
return _tableView;
}
iOS 懒加载的写法
最新推荐文章于 2025-02-25 13:36:38 发布