开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜