It's hard for me to deal with the layout design, which is suitable for both iPhone 3.5inch and iPhone 5 (simulators). I checked the automatic layout and all the layouts were perfect. However, now I need to use UIScrollView, and therefore you need to uncheck the auto-layout.
Also, when viewing the layout with the iPhone 4-inch display, it adds about 60 pixels at the top of the UIScrollView.
Is there a better way to do this (configure scrollview without canceling auto layout)? Therefore, I can support iPhone 4.
[self.scrollView setScrollEnabled:YES];
[self.scrollView setContentSize:CGSizeMake(320, 800)];
however, it does not scroll until I turn off auto power off. Is there a better way to do this?
source
share