하나의 이미지는 640 * 960이고 내 이미지 뷰는 300 * 300.i로 설정되어 있습니다. 이 수행 보이는 이미지 뷰 이미지 ..iOS의 이미지 뷰에서 이미지 너비와 높이를 얻는 방법
후 내가 이미지 뷰에서 이미지의 폭과 높이를 필요로하는 이미지보기 이미지를로드.
이UIImageView *image = [[UIImageView alloc] init];
image.image = [UIImage imageNamed:@"paint5.png"];
int imgHeight = image.layer.frame.size.height;
int imgWidth = image.layer.frame.size.width;
NSLog(@"height of image %i",imgHeight);
NSLog(@"widht of image %i",imgWidth);
다음 링크 - http://stackoverflow.com/questions/14620279/ios-get-width-height-of-jpg-file –