2016-07-05 12 views

ответ

1

используя touchesEnded делегат

override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) { 
     startTouchPosition = touches.first?.locationInView(self) 
     let touch = touches.first 
     if let touchPoint = touch?.locationInView(self){ 
      for view in self.views{ 
       if(view.containsPoint(touchPoint)){ 

       } 
      } 
     } 
    } 

 Смежные вопросы

  • Нет связанных вопросов^_^