Latest 1.0.2
Homepage https://github.com/matthewmayer/MMLaunchImage
License MIT
Platforms ios 5.0, requires ARC

Adds a category to UIImage which returns the current launch image ‘Default.png’ for an iOS app by parsing the Info.plist.

  • Can deal with iOS7 and iOS6 style launch images
  • Deals with different orientations
  • Deals with iPhone and iPad idioms
  • Handy if you are using an image catalog and don’t know the real image names for your launch image
  • Useful for displaying after launch, to create a fade into your app or waiting for an interstitial

Installation:

Using Cocoapods:

pod 'UIImage+MMLaunchImage'

Usage:

#import <UIImage+MMLaunchImage/UIImage+MMLaunchImage.h>

UIImage *launchImage = [UIImage launchImage];
UIWindow *window = [UIApplication sharedApplication].keyWindow;
UIImageView *splash = [[UIImageView alloc] initWithImage:launchImage];
[window addSubview:splash];

Latest podspec

{
    "name": "UIImage+MMLaunchImage",
    "version": "1.0.2",
    "summary": "Returns the current launch image 'Default.png' for an iOS app, depending on OS version, device and orientation.",
    "description": "                   Returns the current launch image 'Default.png' for an iOS appnn                   * Can deal with iOS7 and iOS6 style launch imagesn                   * Deals with different orientationsn                   * Deals with iPhone and iPad idiomsn                   * Useful for displaying after launch, to create a fade into your app or waiting for an interstitialn",
    "homepage": "https://github.com/matthewmayer/MMLaunchImage",
    "license": "MIT",
    "authors": "Matt Mayer",
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/matthewmayer/MMLaunchImage.git",
        "tag": "1.0.2"
    },
    "source_files": "*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This