Cocoa Short: UIScrollView quick tip

2009 January 21
by Dave Verwer

Just a quick iPhone development tip this morning, blogged because I found overcomplicated solutions when I googled it when what I actually wanted to do was really simple.

If you have a UIScrollView containing controls which need to respond to swipe/drag touches themselves rather than scroll the container then just set delayContentTouches to NO. Once this is done the default behaviour is then to immediately pass touches into any UIControl contained within the scroll view instead of scrolling.

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS