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

How To Use UILongPressGestureRecognizer In Swift 2, iOS 9 Application

Posted on 27 Oct 2015

UI Demo -  UILongPressGestureRecognizer (Swift 2, iOS 9)

Sample project demonstrate how to detect long press gesture using UILongPressGestureRecognizer within iOS 9 application (Swift 2, Xcode 7). i.e. Creating long press gesture, perform certain action when it detected. In this example it will create circle having random colour at long press detected location on the screen.

Technology used
– UILongPressGestureRecognizer.
– Create long press gesture recognizer runtime.
– perform action when long press detected.
– 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