标签:
NSArray *objs = [[NSBundle mainBundle] loadNibNamed:@"WNHAppView" owner:nil options:nil];
这个方法会创建xib中的所有对象,并且将对象按顺序放到objs数组中
bundle参数可以为nil,默认就是main bundle
UINib *nib = [UINib nibWithNibName:@"WNHAppView" bundle:[NSBundle mainBundle]];
NSArray *objs = [nib instantiateWithOwner:nil options:nil];
标签:
原文地址:http://www.cnblogs.com/loserof/p/4429090.html