I can not find how I can get the coordinates of the mouse/finger on an iphone in Xcode.
I tried:
NSPoint mouseLoc;
mouseLoc = [NSEvent mouseLocation];
But this seems not to work for iphone?
The API does not recognise it.
Does anyone know a way to do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…