从nib加载cell,创建cell为nib

简介:                 NSArray *objects = [[NSBundle mainBundle] loadNibNamed:@"MsgCell" owner:self options:nil];                 for ...

                NSArray *objects = [[NSBundle mainBundle] loadNibNamed:@"MsgCell" owner:self options:nil];

                for (NSObject *o in objects) {

                    if ([o isKindOfClass:[MsgCell class]]) {

                        cell = (MsgCell *)o;

                        break;

                    }

                }

目录
相关文章
|
5月前
|
iOS开发
iOS UITableViewCell刷新某些行的cell或section
iOS UITableViewCell刷新某些行的cell或section
44 0
自定义tableView的section header/footerView时的view复用问题
自定义tableView的section header/footerView时的view复用问题
353 0