I want to put my images into different directories in Resources folder. For example I have 1.jpg (large) and 1.jpg (thumbnail). So I want to locate them 2 different directories.
If I want to get them, I should use [UIImage named:@”large/1.jpg”]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use should use a bundle for that
http://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/AboutBundles/AboutBundles.html
Actually, using a bundle is also a nice way to separate and organize resources for an application with target for different devices.
To create a bundle for your resources you could do the following:
ResourcesmenuSettings bundleTo start using that bundle only for images and other resources, you can delete all default files that are already there (which are specific for the settings bundle and your are not using this bundle for that)
An interesting point is that, while working with bundles, you will not manage your budle files through
XCodeanymore, you will have to add/remove them only inFinder.