4
모든 iPhone 3.0-4.x 용으로 배포해야하는 4.x 용 앱을 제작했습니다. imageWithCGImage : scale : orientation 메서드는 4.0 이상에서만 사용할 수 있다는 것을 알았습니다. 3.x의 대안? 참고로 :UIImage의 imageWithCGImage에 대한 대안 : 규모 : 방향 :
Creates and returns an image object with the specified scale and orientation factors.
+ (UIImage *)imageWithCGImage:(CGImageRef)imageRef scale:(CGFloat)scale orientation:(UIImageOrientation)orientation
나의 현재 사용 :
UIImage *inputImage = [UIImage imageWithCGImage:[[UIImage imageNamed: @"arrow.png"] CGImage] scale:1.2 orientation:UIImageOrientationUp];
규모이며 정적 (즉, 내가 그것을 변경하지 않을) 내가 대신 포토샵을 통해 이미지를 확장 할 수 있지만 방향이 내 응용 프로그램의 필요성이 남아있다 .
감사합니다.
을 사용할 수 있습니다 그것을 확인 http://paulsolt.com/2010/09/ios-converting-uiimage-to-rgba8-bitmaps-and-back / – ram