开发者

Swip from one view to the next view

I have an app with two views and ViewControllers. How can I let the user swip from one view to the next view like in the homescreen or the weatherapp.

开发者_JAVA百科

I know that there is a page control in the Interface Builder, but it is just an Indicator on what page the user is.

Thanks and sorry for my bad english!


Check out the PageControl.xcodeproj from Apple's iPhone sample code. It provides a template for doing exactly what you want.

The actual paging is done using a UIScrollView in page mode with horizontal scrolling (which is what causes the scrolling to "snap" to a page boundary).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜