JPG image doesn't load with UIImage imageNamed
问题 I read on the reference that from iOS version 4.+ with the method imageNamed of UIImage object, the file extension is not required. From UIImage class reference: Special Considerations. On iOS 4 and later, the name of the file is not required to specify the filename extension. Prior to iOS 4, you must specify the filename extension. But it seems that this only work with PNG files. If my code is: [UIImage imageNamed:@"test"]; The image loads only if the file is test.png The image doesn't load