2012年02月13日23:46 by idyn UIImageクラスオブジェクトのリサイズ方法 (Retinaディスプレイ対応) カテゴリiPhoneアプリ開発 ツイート 以下のような関数(メソッド)を定義すれば、リサイズされたUIImageオブジェクトを簡単に得ることができます。よく使うので例のようにカテゴリを使うと便利です。 (CGFloatは環境によってfloat(32bit)かdouble(64bit)に分岐する型のようです) UIImage+Resize.h #import <UIKit/UIKit.h> @interface UIImage (Resize) + (UIImage *)getResizedImage:(UIImage *)image width:(CGFloat)width height:(CGFloat)height; + (UIImage *)getRes