This is pretty easy. You just need to drag and drop the UIScrollView into your controller, select it and select the "Paging Enabled" checkbox. You can also drag the page control and set yourself as a delegate to the UIScrollViewDelegate protocol and update it when the UIScrollView calls the -scrollViewDidScroll:
method.
Remember to set the UIScrollView delegate using Control + Drag from UIScrollView to ViewController.
Great guide to UIScrollView (scroll down to “Paging with UIScrollView”).
Apple Documentation with PageControl example.
Armin source share