I am using Auto Layout in my iPhone app and have a UIScrollView
. I need to change the content size of my scroll view at several points while my apps running (so setting the content size in viewWillAppear
is useless as I have seen this suggested in other places).
When I change it, my subviews jump about, presumably because it breaks the auto layout constraints.
So how can I approach changing my scrollview content size with auto layout enabled?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…