您的位置:首页 > 其它

取出xib里的view和tablevieCell的xib注册,以及navigationBar对布局的影响

2016-01-14 13:18 453 查看
//xib中取对应的控件

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

self.button = [nib
objectAtIndex:0];

//用xib注册的cell

[self.Super
registerNib:[UINib
nibWithNibName:@"SupplierCell"
bundle:nil]
forCellReuseIdentifier:@"11"];

self.cell = [tableView
dequeueReusableCellWithIdentifier:@"11"];

//navigationBar
(在相应的视图控制器写这句代码)

self.edgesForExtendedLayout=
UIRectEdgeNone;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: