I have a view where some UITextViews are added to a UIScrollView. When the view appears, all the data is loaded correctly in scrollView, but I also have a tableView where you can select different taxes for the item. After selecting an element in this TableView, scrollView is again cleared and mounted with new elements. It fills scrollView with the correct data, but as soon as it fills, it arbitrarily moves to any scroll position instead of scrolling without animation at the top. I checked my code and after installing scrollView I use:
[self.scrollPreciosTarifasGUI scrollRectToVisible:CGRectZero animated:NO];
I also tried using:
[self.scrollPreciosTarifasGUI scrollRectToVisible:CGRectMake(0,0,1,1) animated:NO];
But I have the same result.
How can i fix this?
source
share