Last active
September 23, 2015 05:49
-
-
Save WenchaoD/b4df6ebd5f230f78ca87 to your computer and use it in GitHub Desktop.
iOS get lauchImage
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 *launchImageNames = @{ | |
@"320x480" : @"[email protected]", | |
@"320x568" : @"[email protected]", | |
@"375x667" : @"[email protected]", | |
@"414x736" : @"[email protected]" | |
}; | |
NSString *aspect = [NSString stringWithFormat:@"%@x%@",@([UIScreen mainScreen].bounds.size.width),@([UIScreen mainScreen].bounds.size.height)]; | |
UIImage *launchImage = [UIImage imageNamed:launchImageNames[aspect]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment