UItableviewCell 自定义

来源:互联网 发布:华为云计算部门结构 编辑:程序博客网 时间:2024/05/19 13:27

自定义的tableviewCell在TableView中怎么加载进来呢?

 NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"MyTableViewCell" owner:self options:nil]; 
        cell = [array objectAtIndex:0]; 
        [cell setSelectionStyle:UITableViewCellSelectionStyleGray]; 

原创粉丝点击