美文网首页
tableview init

tableview init

作者: puppyb2m | 来源:发表于2016-08-05 17:14 被阅读3次
    _tableView.delegate = self;
    _tableView.dataSource = self;
    _tableView.tableFooterView = [[UIView alloc]init];
    //    _myTabelView.separatorStyle = NO;
    _tableView.scrollEnabled = NO;
    _tableView.backgroundColor = [UIColor clearColor];
UITableViewCell *cell   = [tableView dequeueReusableCellWithIdentifier :@"cell"];
if(cell == nil){
  cell = [[UITableViewCell alloc] initWithStyle :UITableViewCellStyleValue1 reuseIdentifier :@"cell"];
 }
    
cell.selectionStyle = UITableViewCellSelectionStyleNone;

相关文章

网友评论

      本文标题:tableview init

      本文链接:https://www.haomeiwen.com/subject/rmahsttx.html