- (UIImage *)getLaunchImage
{
CGSize viewSize = [UIScreen mainScreen].bounds.size;
NSString *viewOrienation = @"Portrait";
NSString *launchImage = nil;
NSArray *imagesDirt =[[NSBundle mainBundle].infoDictionary valueForKey:@"UILaunchImages"];
for (NSDictionary *dirt in imagesDirt) {
CGSize imageSize = CGSizeFromString(dirt[@"UILaunchImageSize"]);
if (CGSizeEqualToSize(imageSize, viewSize) && [viewOrienation isEqualToString:dirt[@"UILaunchImageOrientation"]]) {
launchImage = dirt[@"UILaunchImageName"];
}
}
return [UIImage imageNamed:launchImage];
}