Create a folder structure like
*Resources/books/CD_en/icon/0.jpg; *Resources/books/CD_en/icon/1.jpg; *Resources/books/DD_en/icon/0.jpg; *Resources/books/DD_en/icon/1.jpg;
how to get the resource path from NSBundle using the subdirectory 'books/CD_en/icon/0.jpg'
I tried to use
- (NSString *)pathForResource:(NSString *)name ofType:(NSString *)extension inDirectory:(NSString *)subpath [[NSBundle mainBundle] pathForResource:@"0.jpg" ofType:@"jpg" inDirectory:@"books/CD_en/icon"];
but returns nil .
objective-c iphone
Suresh thayu
source share