bundle

1 NSBundle *bundle = [NSBundle mainBundle];
2 
3 [bundle loadNibNamed:@"cell" owner:nil option:nil ];
4 
5 NSBundle *bundle = [NSBundle mainBundle pathForResource:@"image" ofType:@"bundle"];
6 
7 NSBundle *bundle = [NSBundle bundleWithPath:path];
8 
9 NSArray* array = [bundle pathsForResourcesOfType:@"jpg" inDirectory:nil];
原文地址:https://www.cnblogs.com/wangshengl9263/p/3107340.html