NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"image_file" ofType:@"png"]; UIImage *image = [[UIImage alloc] initWithContentsOfFile:imageFilePath]; //resizeImageがRetina対応の画像となる UIImage *resizeImage = [UIImage imageWithCGImage:image.CGImage scale:2.0 orientation:UIImageOrientationUp];
0 件のコメント:
コメントを投稿