Can you find out the coordinates of the screen touching at regular intervals?

Asked 2 years ago, Updated 2 years ago, 39 views


by NSTimer, etc. Is it possible to know the coordinates of the screen being touched at regular intervals?

It's not when the touch moved.

at the right time. They want to know the coordinates of the finger touching the screen.

swift xcode

2022-09-29 22:37

1 Answers

Copy the coordinates with touchesBegan to an instance variable, etc., and update or initialize with ...Moved/Ended/Cenceled.I'll send it to the NSTimer for processing.If necessary, copy information other than coordinates.


2022-09-29 22:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.