imageWithContentsOfFile:
如果图像存储在xcasset Bundle(Xcode 5 Image Catalog)中,有没有办法检索UIImage对象?
使用该imageNamed:
方法可以轻松访问它,但imageWithContentsOfFile:
行为略有不同,那么我在path参数中传递什么?
我试过使用各种格式,但它们都返回一个nil
值:
ImageName@2x.png
ImageName @ 2倍
ImageName
NSBundle文件路径到图像
Apple的文档没有为此指定格式.有任何想法吗?