ios - Swift swipe gesture recogniser errors -


i'm building ios swift (sprite kit) game. i'm using swipes move player. while testing i've found out works fine on devices. however, few devices not recognise swipe. needless say, game doesn't work without swipes. it's odd works on devices few.

my code below. (note: it's cleaned show code relevant case)

edit

the app being tested on actual devices. devices run latest ios software. iphone 5, few 6 , 5s. error occurs on iphone 5s.

am missing something? if not, else try?

override func didmovetoview(view: skview) {      addswipes() }  func addswipes() {          let swiperight:uiswipegesturerecognizer = uiswipegesturerecognizer(target: self, action: selector("swipedright:"))         swiperight.direction = .right         view!.addgesturerecognizer(swiperight)          let swipeleft:uiswipegesturerecognizer = uiswipegesturerecognizer(target: self, action: selector("swipedleft:"))         swipeleft.direction = .left         view!.addgesturerecognizer(swipeleft) }  func swipedright(sender:uiswipegesturerecognizer) {      // code here }  func swipedleft(sender:uiswipegesturerecognizer) {      // code here         } 


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -