Sweep Views left-right
We've got an application planned that is a very basic 7 page presetation. Our client wants to be able to sweep the views from right to left as a form of navigation, similar to the page control on开发者_如何学JAVA the home screen.
I understand the presentModalViewController and pushViewController, but how do I detect a directional finger sweep?
You can use UIScrollView horizontal paging. An Apple's sample code here
See UIScrollView
, and its pagingEnabled
property. UIKit does almost all of the work for you.
精彩评论