I just just migrated my launch images to assets with Xcode 7. My app was not using assets before. Xcode created an image catalog with AppIcon set an another set called "Brand Assets" with all my default images and that work just great. But, now I want to access the launch image programmaticaly.
I tried [UIImage imageNamed:@"Brand Assets"]
and it does not work
And here is what xcode generated as images
/var/mobile/Containers/Bundle/Application/.../my.app/Brand [email protected], /var/mobile/Containers/Bundle/Application/.../my.app/Brand Assets-700-Landscape@2x~ipad.png, /var/mobile/Containers/Bundle/Application/.../my.app/Brand Assets-700-Landscape~ipad.png, /var/mobile/Containers/Bundle/Application/.../my.app/Brand Assets-700-Portrait@2x~ipad.png, /var/mobile/Containers/Bundle/Application/.../my.app/Brand Assets-700-Portrait~ipad.png, /var/mobile/Containers/Bundle/Application/.../my.app/Brand [email protected],
I guess I can use [UIImage imageNamed:@"Brand [email protected]"] for iPhone or the other generated names for iPad Portrait or Landscape
Is there a more safe way to obtain the generated launch screen so I can use it in my code ?
Someone experimented this ?
Note: My app support ios7
Thanks
UIImage
because the algorithm to load an image usingimageNamed:
doesn't match how launch image assets are setup. – rmaddy