取出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;
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;
相关文章推荐
- -Dmaven.multiModuleProjectDirectory system propery is not set.
- Github版本控制与git checkout命令的使用
- BigDecimal 中divide 的解释
- 新建Maven+Spring项目错误集锦
- Spring的MVC框架认识
- iOS系统自带控件 UIBarButtonSystemItem 的样式解析
- 详解 $_SERVER 函数中QUERY_STRING和REQUEST_URI区别(转)
- ReactiveCocoa源码拆分解析(六)
- 链表 UVA 11988 Broken Keyboard (a.k.a. Beiju Text)
- ping包过NAT如何处理
- 设计模式-单例模式
- javamail实践
- 使用zTree实现树形下拉框
- Javascript定义类(class)的三种方法
- Android studio中使用xUtils报错
- Android socket通信
- poj 1845 Sumdiv 约数和定理
- EXCEL中如何查找通配符本身(*?)
- 查看安全码SHA1
- Java有序数组的实现