创建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")];