SAHIL
SAHIL

Reputation: 431

How to add buttons to UIView at zoom in point?

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 enter image description here

I need to add button to this zoom level enter image description here

Upvotes: 0

Views: 157

Answers (1)

Hindu
Hindu

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

Related Questions