Handle Tap On UILabel event / UIGesture on UILabel

xcode_hammer_build_blueprint_tool

Step 1. Add UILabel dynamically or using interface builder into your view. Step 2. Put following lines of code for handling Tap On UILabel.

Gestures Recognizers – Tap, Pinch/Zoom, Rotate, Swipe, Pan, Long Press

images

In this post I’ll shows to how to use the Gestures recognizer in IOS development.UIGestureRecognizer is an abstract class, with the following concrete subclasses, one for each type of available recognizer: UITapGestureRecognizer UIPinchGestureRecognizer UIRotationGestureRecognizer UISwipeGestureRecognizer UIPanGestureRecognizer UILongPressGestureRecognizer Depending on the … Continue reading