저는 라이브러리 사용자의 사진 경로를 전달하는 뷰 (ImageView 만 포함)를 호출하고 있습니다. 그리고 나서, 에서 viewdidload 나는 이미지를로드 중입니다. 하지만 이미지의 오른쪽 상단 모서리에 "슈퍼 줌"이 표시됩니다. 왜 그런지 모르겠습니다!iOS : photolibrary에서 이미지 열기
- (void)viewDidLoad
{
[super viewDidLoad];
self.navigationController.navigationBar.translucent = NO;
UIImage *picture = [UIImage imageWithContentsOfFile: self.picturePath];
UIImageView* imageView = [[UIImageView alloc] initWithImage:picture];
imageView.contentMode = UIViewContentModeScaleAspectFit;
[self.view addSubview:imageView];
}
사진의 크기는 무엇입니까? imageView : NSLog (@ "% @", NSStringFromCGRect (imageView.frame)); – Corey
반환 된 {{0, 0}, {3264, 2448}} –
이미 시도한 : self.imageView. 프레임 = CGRectMake (0, 0, self.view.bounds.size.width, self.view.bounds.size.height); addSubview before ... 같은 결과를 얻으십시오 –