34,333
edits
Changes
→Implementing the touchesBegan Method
== Implementing the touchesBegan Method ==
When the user first touches the screen the location coordinates need to be saved in the startPoint instance variable and those coordinates reported to the user. This can be achieved by implementing the touchesBegan method in the ViewController.swift file as follows:
<pre>