我有归结为一个目录:如何将具有重复文件名的目录结构添加到项目中?
/
- character0 -- attribute0 -- image.png
- character1 -- attribute0 -- image.png
我把它丢在Xcode中,为了确定两个字符。现在我想加载每个image.png
CIImage * cheetah = [CIImage imageWithContentsOfURL:[[NSBundle mainBundle]
URLForResource:@"image" withExtension:@".png"]];
什么是猎豹?我怎样才能得到character0
?
http://stackoverflow.com/questions/7343759/count-of-images-in-my-nsbundle-mainbundle-bundlepath – 2013-04-06 09:58:55
@Nag_iphone已有的API的变化。代码不再编译,但我明白了。 – alecail 2013-04-06 10:12:28
确定,但....如果知道答案让我知道 – 2013-04-06 10:18:04