标签:option cell 注册 init main iat 加载 uiview board
UIView *view = [[NSBundle mainBundle] loadNibNamed:@"MyView" owner:self options:nil][0];
UIViewController *vc = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
UIStoryboard*storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UIViewController*vc = [storyboard instantiateInitialViewController];
//第一步在控制器生命周期中注册 [self.msgTableView registerNib:[UINib nibWithNibName:@"RTJFMyMsgTableViewCell" bundle:nil] forCellReuseIdentifier:cellID]; //第二步在表格数据源代理中返回 RTJFMyMsgTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID]; if (cell == nil) { cell = [[RTJFMyMsgTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID]; } return cell;
标签:option cell 注册 init main iat 加载 uiview board
原文地址:https://www.cnblogs.com/yyyyyyyyqs/p/11423068.html