Tag:Start up diagram

  • An example of getting launchimage startup diagram in IOS development

    Time:2020-10-22

    Examples are as follows: #define KYRect [UIScreen mainScreen].bounds //Get startup image CGSize viewSize = KYRect.size; //Please set horizontal screen to @ “landscape” NSString *viewOrientation = @”Portrait”; NSString *launchImageName = nil; NSArray* imagesDict = [[[NSBundle mainBundle] infoDictionary] valueForKey:@”UILaunchImages”]; for (NSDictionary* dict in imagesDict) { CGSize imageSize = CGSizeFromString(dict[@”UILaunchImageSize”]); if (CGSizeEqualToSize(imageSize, viewSize) && [viewOrientation isEqualToString:dict[@”UILaunchImageOrientation”]]) { launchImageName […]