Advertise here

Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

simple UIGesture function - error?

spoot088spoot088 New YorkPosts: 2New Users Noob
this is throwing runtime errors about not recognizing the selector! anyone know whats wrong here?


var gesture: UILongPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: Selector("longPress:"))

gesture.minimumPressDuration = 1.0

func longPress(longPress: UIGestureRecognizer) {
if (longPress.state == UIGestureRecognizerState.Ended) {
} else if (longPress.state == UIGestureRecognizerState.Began) {
Sign In or Register to comment.