2014-08-28 3 views

답변

1

, 당신은 사용할 수 있습니다

float width = yourImage.size.width; 
float height = yourImage.size.height; 

참고로, 사용 NSData에서 UIImage에 이미지를 뽑을 수 :

UIImage *img = [UIImage imageWithData:yourData]; 
0

을 ImageIO에서 프레임 워크

으로 시도

@import ImageIO; ...

NSURL * 이미지 URL = yourUrl

CGImageSourceCreateWithURL ((__ 다리 CFURLRef) URL, NULL);

있는 NSDictionary * imageProperty =

CGImageSourceCopyPropertiesAtIndex (imgSource, 0, NULL) (*는 NSDictionary __bridge_transfer);

NSLog (@ "% @", imageProperty);

CFRelease (imgSource);

관련 문제