views:

53

answers:

1

I have a detail view for a contact. The last field is a Textview that can be as short as 1 line and as long as 20. in the viewDidLoad method I use:

scrollView.contentSize = self.view.frame.size;

My problem is that when the data is displayed, the scroll view scrolls to the bottom on its own. Obviously I would like it to start at the top.

I used the Content offset with the bottom value set to about 300 to allow the view to even be able to scroll down far enough. I have tried to disable scrolling until the load is finished but then it just locks you at the bottom.

As you can probably tell I am new at iPhone Programming. Any ideas?

A: 

Set contentOffset to 0.

Then, go and read the docs. you're using the scroll view completely wrong.

UITextView is scrollable, so it's unclear why you're sticking it in a scroll view.

tc.
I have that in a scroll view because that textview box is only one of 10 fields for this contact record. While this field the the only one causing the need to scroll, more will come later.
TheHockeyGeek