开发者

Getting Images List using bundle

开发者 https://www.devze.com 2023-01-11 00:56 出处:网络
I am using this code to get the list of Images in my project NSArray *pngPaths = [[NSBundle mainBundle] pathsForResourcesOfType:@\"png\" inDirectory:nil];

I am using this code to get the list of Images in my project

NSArray *pngPaths = [[NSBundle mainBundle] pathsForResourcesOfType:@"png" inDirectory:nil];

I dont want to get one image开发者_如何转开发 from the list can i add filter to it

Thank You


I think it is easier to do when you already load all paths into your memory NSArray. You can just loop over all elements and examine the path and remove paths you don't want

0

精彩评论

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

关注公众号