views:

29

answers:

1

I have a full screen UIScrollView that has several possible layout configurations. It is basically a "contact" card eith some buttons, imageViews, Labels , and text fields. When it loads, buttons will be moved or removed based on the content available.

Oddly, the Scorll View does not always start in the same position. Sometimes it loads with the top in view, other times the bottom or all points in between. It seems random. I have 2 contacts that trigger the exact same full layout but yet the Scroll View starts differently for both. Also each contact does act the same, the same contact puts the scroll view in the same position.

Anyone know where to start? I would like the scroll view to always start at the beginning.

A: 

Set the scrollView content offset after you're done adding objects.

[setContentOffset:CGPointMake(0,0) animated:NO]

Jordan
Thanks for pointing me the right direction... :)[scrollView setContentOffset:CGPointMake(0,0) animated:NO];
TheHockeyGeek