1.如果用UItableViewCell系统提供的话,是可直接提供xib的,但是如果是继承自,自定义的cell,并且父cell是没有创建xib的,子cell是要关联的。
2.创建一般的view是要关联的
附关联代码
+ (DefineView *)createDefineView
{
NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"DefineView" owner:self options:nil];
if (topLevelObjects == nil || [topLevelObjects count] <= 0){
return nil;
}
DefineView *view = (DefineView *)[topLevelObjects objectAtIndex:0];
return view;
}
![%[S{)5{A1
3P]$E4JP2SYU.jpg](http://upload-images.jianshu.io/upload_images/4240209-7a6cb369d91a941f.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)