Created
April 28, 2015 16:19
-
-
Save MickaelCruzDB/314c2bf746d5d8e4d388 to your computer and use it in GitHub Desktop.
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
override func touchesMoved(touches: Set<NSObject>, withEvent event: UIEvent) { | |
if let touch = touches.first as? UITouch { | |
let location = touch.locationInView(self) | |
if (!CGRectContainsPoint(ScaleRect(self.bounds, n: 2.0), location)) | |
{ | |
self.highlighted = false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment