I created a package called applausible.bundle, I put the package in the support files. This is my code.
NSBundle* myBundle; myBundle = [NSBundle bundleWithPath:@"/Library/applausible.bundle"]; NSString *path = [myBundle pathForResource:@"splash.png" ofType:nil]; [imageName setImage:[UIImage imageNamed:path]];
Here I can not display the image on the image. Another way I tried this is I place the image on the image using xib during application startup. The output is the same as in the console. The image "splash_screen high resolution.png" could not be loaded, which is referenced by the thread with the identifier "com.xxxxxxx.ImageSample". Can someone tell me where I made a mistake. Finally, my goal is to display an image on a UIImageview , which is in an external bundle.
source share