方法1:
NSArray *objects = [[NSBundle mainBundle] loadNibNamed:@"flowerCell" owner:self options:nil];
cell = objects[0];
方法2:
UINib *nib = [UINib nibWithNibName:@"flowerCell" bundle:nil];
NSArray *objects = [nib instantiateWithOwner:nil options:nil];
cell = objects[0];
时间: 2024-10-07 00:04:14