Xcode制作Bundle文件很简单

来源:互联网 发布:rails application.js 编辑:程序博客网 时间:2024/04/27 20:02

1、制作

在项目中右击鼠标  -->  Show In Finder  -->  右击鼠标 -->  新建文件夹  --> 将文件夹命名为:xxx.bundle  --> 将 该文件添加到工程中即可。

2、读取bundle文件夹中的数据

[ [ [NSBundle mainBundle] resourcePath] stringByAppendingPathComppoment:@“xxx.bundle/images/1.png”];

1 0