Search code examples
iostouchprogrammatically-created

Click on the screen co-ordinate in ios


I want to create a fake touch in iOS ViewController programmatically by giving the co-ordinates as input it should work like a manual touch please guide me in achieving that .


Solution

  • That can be possible, Once I found something that does the same as you wanted. But I would like you to read these line that the author wrote a the beginning of that post:

    The content of this post is for debugging and testing only. Do not submit this code in an application to the App Store. Doing so will likely result in:

    1. A bad UI experience for your users.
    2. An app that breaks on every OS update.
    3. Rejection of your application.

    Here is the link.