NSBundle* bundle = [NSBundle bundleWithPath:[[NSBundle mainBundle].resourcePath stringByAppendingPathComponent:@"bundleName"]];

UIImage* img = [UIImage imageWithContentsOfFile:[bundle pathForResource:imageName ofType:@"png" inDirectory:[NSString stringWithFormat:@"文件名称%@",externPath]]];

最新文章

  1. 微信小程序的认识和开发适用性
  2. 在myeclipse2014使用git上传github
  3. Windows server 修改mysql端口
  4. Magic Number(Levenshtein distance算法)
  5. java mail api 使用
  6. [jQuery学习系列二 ]2-JQuery学习二-数组操作
  7. Servlet-中文乱码
  8. PHP内存消耗
  9. GCC编译C程序源代码
  10. android开发网络连接工具类(一)
  11. IEEE 754标准
  12. Angular JS的Placeholder功能在IE8/9浏览器中不可用
  13. Jumbo frame与MTU
  14. android 开发设计模式---单例模式
  15. xml模块学习
  16. matlab常用命令
  17. 史上最详细nodejs版本管理器nvm的安装与使用(附注意事项和优化方案)
  18. centos7学习笔记-安装后的一些配置
  19. MFC相关函数汇总(持续汇总跟新中)
  20. Nginx报错:upstream timed out (110: Connection timed out)和client intended to send too large body【转】

热门文章

  1. This Android SDK requires Android Developer Toolkit version 20.0.0 or above
  2. ZOJ 3820:Building Fire Stations(树的直径 Grade C)
  3. 计蒜客 18488.Extreme Sort (German Collegiate Programming Contest 2015 ACM-ICPC Asia Training League 暑假第一阶段第三场 E)
  4. maven坐标
  5. 51 nod 1419 最小公倍数挑战【数论/互质+思维】
  6. 链式前向星DFS
  7. 洛谷 ——2925干草出售Hay For Sale
  8. HDU 3966 Aragorn's Story(树链剖分)(线段树区间修改)
  9. log4j - 1
  10. 反汇编引擎Capstone