-
读取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"];
本文标题:APP Framework 模块化小技巧
本文链接:https://www.haomeiwen.com/subject/pfrmnftx.html
网友评论