通过xib创建的cell
一、注册创建法:
[self.treeView registerNib:[UINib nibWithNibName:NSStringFromClass([MerchantSearchSelectCell class]) bundle:nil] forCellReuseIdentifier:self.selectTVC];
二、数据源方法内创建法:
cell = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([MerchantIntroTableViewCell class]) owner:nil options:nil][0];
if(cell == nil){
cell = [[[NSBundle mainBundle] loadNibNamed:@"Level0_Cell" owner:self options:nil] lastObject];
}
通过xib创建的控制器
PersonalInfoNewViewController *personalInfo = [[PersonalInfoNewViewController alloc] initWithNibName:@"PersonalInfoNewViewController" bundle:nil withHeadImage:self.headImageView.image];