How to localize images for iOS?
Put your images into localized folder, such as "en.lproj" , "zh.lproj"
This works for System Language.
But how about using language of application?
We can use string of app language by "NSLocalizedStringFromTable"
But there is NO such function for image.
Here is a solution.
Use the following code to get the path of the image of the app language.
NSString *path = [[NSBundle mainBundle] pathForResource:@"image_name" ofType:@"jpg" inDirectory:@"zh.lproj"];
or
NSString *path = [[NSBundle mainBundle] pathForResource:@"image_name" ofType:@"jpg" inDirectory:@"" forLocalization:@"zh"];
UIImage *image = [UIImage imageWithContentsOfFile:path];