获取bundle文件下的资源
2024-09-28 13:58:20
NSBundle* bundle = [NSBundle bundleWithPath:[[NSBundle mainBundle].resourcePath stringByAppendingPathComponent:@"bundleName"]];
UIImage* img = [UIImage imageWithContentsOfFile:[bundle pathForResource:imageName ofType:@"png" inDirectory:[NSString stringWithFormat:@"文件名称%@",externPath]]];
最新文章
- 微信小程序的认识和开发适用性
- 在myeclipse2014使用git上传github
- Windows server 修改mysql端口
- Magic Number(Levenshtein distance算法)
- java mail api 使用
- [jQuery学习系列二 ]2-JQuery学习二-数组操作
- Servlet-中文乱码
- PHP内存消耗
- GCC编译C程序源代码
- android开发网络连接工具类(一)
- IEEE 754标准
- Angular JS的Placeholder功能在IE8/9浏览器中不可用
- Jumbo frame与MTU
- android 开发设计模式---单例模式
- xml模块学习
- matlab常用命令
- 史上最详细nodejs版本管理器nvm的安装与使用(附注意事项和优化方案)
- centos7学习笔记-安装后的一些配置
- MFC相关函数汇总(持续汇总跟新中)
- Nginx报错:upstream timed out (110: Connection timed out)和client intended to send too large body【转】
热门文章
- This Android SDK requires Android Developer Toolkit version 20.0.0 or above
- ZOJ 3820:Building Fire Stations(树的直径 Grade C)
- 计蒜客 18488.Extreme Sort (German Collegiate Programming Contest 2015 ACM-ICPC Asia Training League 暑假第一阶段第三场 E)
- maven坐标
- 51 nod 1419 最小公倍数挑战【数论/互质+思维】
- 链式前向星DFS
- 洛谷 ——2925干草出售Hay For Sale
- HDU 3966 Aragorn's Story(树链剖分)(线段树区间修改)
- log4j - 1
- 反汇编引擎Capstone