¡@

Home 

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

iphone Programming Glossary: pulldownview

Drag Down UIView in iOS 5

http://stackoverflow.com/questions/10317951/drag-down-uiview-in-ios-5

be easy to do. Let's say you have a UIView mainView from which you want to trigger the pull down thing. Put a subview pulldownView on mainView top outside of visible area. Implement touchesBegan on mainView and check if the touch is in the top 30 pixels.. if the touch is in the top 30 pixels or points . Implement touchesMoved where you check if move direction is down and pulldownView not visible and if so drag the pulldownView down into visible area of main view or check if move direction is up and pulldownView.. . Implement touchesMoved where you check if move direction is down and pulldownView not visible and if so drag the pulldownView down into visible area of main view or check if move direction is up and pulldownView visible and if so push upwards out..