public class UITouch extends NSObject
Modifier and Type | Method and Description |
---|---|
CGPoint |
locationInView(UIView request)
Returns the position of the receiver expressed in current view's
coordinate system.
|
int |
phase()
Returns the type of touch.
|
int |
tapCount()
Returns a number that counts how many times the user tapped the screen
for this specific touch.
|
double |
timestamp()
Returns the timestamp that shows when the touch occurred or when was the
last modification of the touch.
|
String |
toString() |
UIView |
view()
Returns the initial view in which the touch originally occurred.
|
UIWindow |
window()
Returns the initial window in which the touch originally occurred.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public CGPoint locationInView(UIView request)
request
- The current view . If NULL, then it uses the logical
coordinate system of the screen to define the current position of the
receiver.public UIView view()
public UIWindow window()
public int tapCount()
public double timestamp()
public int phase()
Copyright © 2020. All rights reserved.