class UITouch
Public Instance Methods
to_s()
click to toggle source
# File lib/ios/sugarcube-to_s/uitouch.rb, line 3 def to_s phase = case self.phase when UITouchPhaseBegan 'began' when UITouchPhaseMoved 'moved' when UITouchPhaseStationary 'stationary' when UITouchPhaseEnded 'ended' when UITouchPhaseCancelled 'cancelled' end "#{self.class.to_s}(#{self.tapCount} #{self.tapCount == 1 ? 'tap' : 'taps'}, phase: #{phase}, "\ "at #{self.locationInView(self.view).inspect}, @ #{self.timestamp})" end