标签:
加载Xib的两种方式: 1.[[NSBundle mainBundle] loadNibNamed:(NSString *) owner:(id) Options:(NSDictionary *)]
2.创建nib对象: [UINib nibWithNibName:(NSString *) bundle:[NSBundle mainBundle]] 其中[NSBundle mainBundle]可以省略写成nil:[UINib nibWithNibName:(NSString *) bundle:nil] 加载Xib\nib UIView *footerView = [[nib instantiateWithOwner:nil Options :nil]lastObject]; self.tableView.tableFooterView = footerView;
标签:
原文地址:http://www.cnblogs.com/why-not/p/4573957.html