I had a problem setting the scroll position on a UIScrollBar (specifically setting it to the bottom of my text box for a chat room). Taken me about an hour to find the solution, so i will post it here for future reference if anyone else is in the position i was in.

code:

// scroll down
scrollbar.scrollPosition = chat.maxscroll;
chat.scroll = chat.maxscroll;



You must set the scrollbar and chat otherwise it keeps resetting itself. Good luck!