EnkiUtils
Small library of classes that Enki Labs uses internally.
 All Classes Functions Properties Pages
UIImage(EnkiUtils) Category Reference

#import <UIImage+EnkiUtils.h>

Instance Methods

(UIImage *) - imageByScalingProportionallyToSize:
 

Class Methods

(UIImage *) + imageNamedForDevice:
 

Detailed Description

Author
carlj https://gist.github.com/3782351
gcamp http://stackoverflow.com/questions/2025319/scale-image-in-an-uibutton-to-aspectfit

The UIImage category allows for device specific image naming and proportional image scaling.

Definition at line 20 of file UIImage+EnkiUtils.h.

Method Documentation

- (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.


The documentation for this category was generated from the following files: