初始化cell 的2种方法

来源:互联网 发布:mac switchhost 编辑:程序博客网 时间:2024/06/07 09:11
DiscoverJokeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellJokeIdentify forIndexPath:indexPath];//            DiscoverJokeCell *cell = (DiscoverJokeCell *)[tableView dequeueReusableCellWithIdentifier:cellJokeIdentify];//            if (!cell) {//                cell = [[[NSBundle mainBundle] loadNibNamed:@"DiscoverJokeCell" owner:self options:nil] objectAtIndex:0];//            }

0 0