I've found this code on Ray Wenderlich
UIScrollView *scrollView;
Why isn't scrollviewframe.size.width written self.scrollview.scrollviewframe.size.width?
Source:
UIScrollView *scrollView;
Code:
CGRect scrollViewFrame = self.scrollView.frame;
CGFloat scaleWidth = scrollViewFrame.size.width / self.scrollView.contentSize.width;
CGFloat scaleHeight = scrollViewFrame.size.height / self.scrollView.contentSize.height;
Why isn't scrollviewframe.size.width written self.scrollview.scrollviewframe.size.width?
Source:
Code:
http://www.raywenderlich.com/10518/how-to-use-uiscrollview-to-scroll-and-zoom-content