How can I create a UIView at a certain CGPoint?
问题 I need to be able to create and display a UIView at a a certain CGPoint. So far I have a gesture recogniser that is added as a subview to the main view. I then create a UIView programatically and set's it's x and y coordinates to the CGPoint that I got from the gesture recogniser. I am able to create it and add it as a subview but the position of the created UIView is different from the location of the TAP. AnimationView subclasses UIView My code is below tappedLocation = gesture