UIScrollView squashes UIImageView image
问题 I have the following code in ViewDidLoad and it squashes my UIImage/ UIImageView. I want the image to fill the UIScrollView. [super viewDidLoad]; _imageHolder = [[UIImageView alloc]initWithFrame:self.view.frame]; _scrollView = [[UIScrollView alloc]initWithFrame:self.view.frame]; [_scrollView setBackgroundColor:[UIColor purpleColor]]; // Tell the scroll view the size of the contents self.scrollView.contentSize = self.view.frame.size; self.scrollView.delegate = self; self.scrollView