我有歸結爲一個目錄:如何將具有重複文件名的目錄結構添加到項目中?
/
- 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