iOS access custom bundle file

来源:互联网 发布:视频gif制作软件 编辑:程序博客网 时间:2024/05/02 19:50

1. 在xcode外创建一个文件,重命名为  xxx.bundle.

2.把xxx.bundle拖入xcode

xxx.bundle中含有1.png, 2.png,,,,,,,,,,等等。


关键代码:

 UIImage *image = [UIImageimageNamed:@"xxx.bundle/1.jpg"]



原创粉丝点击