创建framework工程:
修改两项:
拖入自己项目的要打包的文件
在这里把要暴露的头文件放里面
同时 这里也暴露一下 public
cmd+b build一下 生成framework
test
在使用的工程 记得
若有图片 做一个bundle把图片放里面
图片的使用(xib一样)
#define BundleName @"testFrameworkBundle"
#define BundlePath(name,type) [[NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:BundleName ofType:@"bundle"]] pathForResource:name ofType:type]
[UIImage imageNamed:BundlePath(@"logo", @"png")];
本文介绍如何创建iOS Framework,包括添加项目文件、配置头文件暴露、编译生成framework及使用bundle管理资源文件等步骤。
1628

被折叠的 条评论
为什么被折叠?



