Switch from one glance to the next view

I have an application with two views and ViewControllers. How can I allow the user to switch from one view to the next view, for example, on the main screen or in weatherapp.

I know that there is a page control in the interface builder, but this is only an indicator on which page the user is on.

Thank you and sorry for my bad english!

0
source share
1 answer

Check out the PageControl.xcodeproj code from the Apple iPhone example. It provides a template to accomplish exactly what you want.

Actual paging is performed using the UIScrollView mode in page mode with horizontal scrolling (which forces the scroll to β€œsnap” to the page border).

+4
source

Source: https://habr.com/ru/post/1399787/


All Articles