objective c - Snap to grid effect with Quartz 2d? iphone dev -
Still trying on an iphone dev starter. I want the user to see the screen on the screen, which indicates that the pin will be placed on the scene. I have fulfilled it (yes), but I want to catch hold effect, and can not come with the solution. It is such that I am keeping that dot: CGPETE Drepount = CP pointmack (lastTouch.x - horizontal offset, last RTO-> vertical offset); [Dryage drawpoint: dropout]; // Tell the image to attract yourself I have a grid in the background as a view controller, overlapping that grid I have a custom diagram with one UIView is the screen that touches the user every time. (And for some reasons the user already appears before touching the user ... although this is another query that I am currently seeing) then grid Snap in effect. any idea? Assume that your method faucets the user, and then the nearest grid intersection of the pin, this basic form There is only one spherical problem. // The constant value / kVGridOffset, kHGridOffs...