Why “loadNibNamed” methods return array?
问题 When we use the loadNibNamed method to get nib file, why will return a array, is not a nib file name corresponds to a nib file? I try to print this array's count, I found it always return 1. I hope you can help me to explain, thank you every much! Here is the snippet of code : NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"TestView" owner:self options:nil]; NSLog(@"array's count is %ld",array.count); 回答1: This is because NIB/xib files can also contain more than one view representation