Prevent subview from scrolling in a UIScrollView

Posted by jbrennan on Stack Overflow See other posts from Stack Overflow or by jbrennan
Published on 2010-06-10T01:25:25Z Indexed on 2010/06/10 1:32 UTC
Read the original article Hit count: 363

I have a UIScrollView subclass with a certain subview I'd like to prevent from scrolling (while all the other subviews scroll as normal).

The closest example to this I can think of is UITableView's "index strip" on the right side (look in the Contacts app to see an example). I am guessing this is a subview of the table (scrollview) but it does not move as the user scrolls.

I can't seem to make my subview stay put! How can I accomplish this?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch