int contentWid = self.view.width ;
unsigned long width = CGImageGetWidth(image.CGImage) ;
unsigned long height = CGImageGetHeight(image.CGImage) ;
int contentH = (int)(contentWid * height / width) ;
imageView.frame = CGRectMake(0, 0, contentWid, contentH);
暂无评论
要发表评论,您必须先 登录