开发者

Swip from one view to the next view

开发者 https://www.devze.com 2022-12-15 02:57 出处:网络
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.

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

精彩评论

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

关注公众号