KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
i have an iPhone application in which i added images directory (Group) in to Resources (group). i want to access that images which is in images . I need a path to that images so i create a code like following. NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"myImage1" ofType:@"png" inDirectory:@"images"]; NSLog(@"%@", imagePath); Result : (null) i also tried this code NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"myImage1" ofType:@"png"]; But this code gives me (null) result. myImage1 's path is Resources/images/myImage1.png I don't know what is the problem. Please suggest some fixes.
Tags (comma-separated)
Save Edits
Cancel