I put a UIScrollView
in my nib's view
, and linked it to a an IBOutlet
property.
Now, when I do this in my viewDidLoad
method, it seems to have no effect on the contentSize
:
self.sv.backgroundColor = [UIColor yellowColor]; // this works
CGSize size = CGSizeMake(1000.0, 1000.0);
[self.sv setContentSize:size]; // this does not
It behaves as if the contentSize
was the same as the frame. What's going on?
This started working when I turned off AutoLayout. Why?