¡@

Home 

2014/10/15 ¤U¤È 10:13:15

iphone Programming Glossary: remorsefulscrollview

UIScrollView : paging horizontally, scrolling vertically?

http://stackoverflow.com/questions/728014/uiscrollview-paging-horizontally-scrolling-vertically

scrolling and start horizontal scrolling. You want to subclass your outer UIScrollView say you name your class RemorsefulScrollView so that instead of the default behaviour it immediately forwards all events to the inner view and only when significant.. all events to the inner view and only when significant horizontal movement is detected it scrolls. How to do make RemorsefulScrollView behave that way It looks like disabling vertical scrolling and setting delaysContentTouches to NO should make nested UIScrollViews.. means you cannot use UIScrollView's code for event handling you have to override all four touch handling methods in RemorsefulScrollView and do your own processing first only forwarding the event to super UIScrollView if you have decided to go with horizontal..