天天看点

从nib加载cell,创建cell为nib

                NSArray *objects = [[NSBundle

mainBundle] loadNibNamed:@"MsgCell"

owner:self options:nil];

                for (NSObject *o

in objects) {

                    if ([o

isKindOfClass:[MsgCell class]]) {

                        cell = (MsgCell *)o;

                        break;

                    }

                }

继续阅读