APP Framework 模块化小技巧
2018-09-18 本文已影响12人
AZander
-
读取framework中资源
NSBundle bundle = [NSBundle bundleForClass:self.class]; // 获取类所在的bundle,也就是framework的bundle
NSString pathOfModel = [bundle pathForResource:@"Cascade" ofType:@"xml"];
读取framework中资源
NSBundle bundle = [NSBundle bundleForClass:self.class]; // 获取类所在的bundle,也就是framework的bundle
NSString pathOfModel = [bundle pathForResource:@"Cascade" ofType:@"xml"];