![]() |
EnkiUtils
Small library of classes that Enki Labs uses internally.
|
#import <UIImage+EnkiUtils.h>
Instance Methods | |
| (UIImage *) | - imageByScalingProportionallyToSize: |
Class Methods | |
| (UIImage *) | + imageNamedForDevice: |
The UIImage category allows for device specific image naming and proportional image scaling.
Definition at line 20 of file UIImage+EnkiUtils.h.
| - (UIImage *) imageByScalingProportionallyToSize: | (CGSize) | targetSize |
imageByScalingProportionallyToSize lets you resize an image so if, for example, you are butting it on a button, it is resized once, just everytime the button is rendered.
Definition at line 47 of file UIImage+EnkiUtils.m.
| + (UIImage *) imageNamedForDevice: | (NSString*) | name |
imageNamedForDevice returns the image named by -568@2x for 4" retina devices. You use this in your app, not just for Default-568@2x. Odd ommission by apple...
Definition at line 15 of file UIImage+EnkiUtils.m.