Created
October 9, 2015 13:47
-
-
Save rdougan/db8bc1e76b1d3901b3a9 to your computer and use it in GitHub Desktop.
An example of adding ForceTouch to a UIButton using a new UIControlEvent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button.addTarget(self, action: "doAction:", forControlEvents: .ForceTouchDown) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment