Created
October 13, 2014 18:40
-
-
Save nonamelive/3d3109cc4ca71b6f887e to your computer and use it in GitHub Desktop.
Reference the LaunchImage from Asset Catalog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDictionary *dict = @{@"320x480" : @"LaunchImage-700", @"320x568" : @"LaunchImage-700-568h", @"375x667" : @"LaunchImage-800-667h", @"414x736" : @"LaunchImage-800-Portrait-736h"}; | |
NSString *key = [NSString stringWithFormat:@"%dx%d", (int)[UIScreen mainScreen].bounds.size.width, (int)[UIScreen mainScreen].bounds.size.height]; | |
UIImage *launchImage = [UIImage imageNamed:dict[key]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment