Reputation: 431
i want to add a button to UIView
after zoom in to specified point, i have an UIView
on UIScrollview
, with the help of UITapGestureRecognizer
i can able to tap the view and zoom in the view with UIScrollviewDelegates
, but now the issue is how to add the buttons to the zoomed view.
its just like the showing pins to MKMapView
.,
This is my code
http://pastebin.com/3zjgbzA1
This is my UIView
I need to add button to this zoom level
Upvotes: 0
Views: 157
Reputation: 2914
for adding button on scroll view at touch position, you need to find touch point in respect of scroll view instead on self.view.
And for finding touch point, you can use below statement:
CGPoint touchPoint = [tapgesture locationInView:scroller];
Thanks
Upvotes: 1