Hi there,
Still an iphone dev starter but trying.
I would like to have the user touch the screen at which point a pin (dot) will be placed on the view.
I have accomplished this (yey) but i would like to have snap to grip effect, and can not come up with a solution. This is how i am placing that dot:
CGPoint drawPoint = CGPointMake(lastTouch.x - horizontalOffset, lastTouch.y - >verticalOffset); [drawImage drawAtPoint:drawPoint]; //Tell the image to draw itself
I have a grid as a background on a Viewcontroller, overlapping that grid i have a UIView with custom drawing that displays a pin every time the user touches the screen.
(and for some reason the dot already appears before the user touches... all though that is another query that i am looking into at the moment)
So snap to grid effect. Any ideas?