Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Addition to support tall images for 4 inches screens
Objective-C
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
UIImage+Additions_568.h
UIImage+Additions_568.m

README.md

Install

  • Add UIImage+Additions_568.h and UIImage+Additions_568.m to your project
  • Make call [UIImage patchImageNamedToSupport568Resources] somewhere in your main.h or AppDelegate.

example of main.h

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "UIImage+Additions_568.h"

int main(int argc, char *argv[])
{
    @autoreleasepool {
        [UIImage patchImageNamedToSupport568Resources];
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

Usage

Use your patched imageNamed in the same way as before

example of usage

NSLog(@"%f",[UIImage imageNamed:@"Default"].size.height); // make sure you have loaded taller version of image in iphone 5 simulator :)
Something went wrong with that request. Please try again.