Home  »  UI Demo - iOS9  »  How To Use UIPageControl In Swift 2, iOS 9 Application

How To Use UIPageControl In Swift 2, iOS 9 Application

Posted on 28 Oct 2015

UI Demo - UIPageControl (Swift 2, iOS 9)

Sample project demonstrate how to use UIPageControl within iOS 9 application (Swift 2, Xcode 7). This example uses UISwipeGestureRecognizer for detecting swipe left or right. i.e. upon swipe gesture detected, it will change UIPageContol currentPage properties and set page number to UILabel text property.

Technology used
– UILabel.
– UIPageControl.
– UISwipeGestureRecognizer.
– Added swipe gesture to page.
– Change UIPageControl currentPage property upon swipe.
– Set page number to UILabel text property.
– Build with Xcode storyboard.
– Adaptive layout for major screen size support.
– Created with Swift 2, Xcode 7, iOS 9.

Platform
– Swift 2
– Xcode 7
– iOS 9

Supported Device
iPhone 4s, 5, 5s, 5c, 6, 6 Plus, 6s, 6s Plus, all iPad having iOS 9.

You can download source form GitHub profile.

Go to Top