开发者

NSBundle and Accessing Folder inside Resources Folder

I have Images folder inside the Resources folder which contains images. I am using the following code to access the images but the resultant array always comes out to be empty:

开发者_运维技巧NSArray *imagesPath = [bundle pathsForResourcesOfType:@"gif" inDirectory:@"Images"]; 

Am I missing something??


If you do [[NSBundle mainBundle] pathForResource:@"Images" ofType:nil] do you get the correct path for that folder? If not are you sure that is a folder and not a simple group?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜