I am surprised that I have not seen more comments about this. The scroll view of the internal autostart is mostly broken in iOS 8 (as seeded before the time of writing).
EDIT . This was fixed in seed 5, so this note should be ignored!
It is assumed that this rule (see https://developer.apple.com/library/prerelease/ios/technotes/tn2154/_index.html ) if the contents of the scroll (its subspecies or subtitles) are attached to all four scroll borders, it sets the size of the content.
However, in iOS 8, this fails - but in an odd way. It fails only if the restrictions determining the height and width of the subzones are absolute, not internal.
Thus, for example, consider the code at the bottom of this technical note, where the code creates a scroll and a really large image (here it is: I fixed a small typo where we omit the at sign):
- (void)viewDidLoad { UIScrollView *scrollView; UIImageView *imageView; NSDictionary *viewsDictionary;
This code works (assuming you have a really large image), because the image is sized according to internal restrictions. But now change the last two lines, for example:
[scrollView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[imageView(1000)]|" options:0 metrics: 0 views:viewsDictionary]]; [scrollView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[imageView(1000)]|" options:0 metrics: 0 views:viewsDictionary]];
Now you have a scroll that scrolls on iOS 7 but not scrolls on iOS 8. Further research shows that this is because the content size remains at (0,0) ; it does not take into account the absolute restrictions on the width and height of the presentation of content.
matt
source share