CGPoint PreviousLocation - UIGestureRecognizer -
i know seems it's easy do, can't seem figure out , i've researched lot of places want it's no where. i'm creating puzzle game , images moved around using uigesturerecognizers let's if puzzle piece not fit right location, want move it's original position or previous position got from. can please shed light on over ho this? thanks
the easiest thing add property view controller store cgpoint of puzzle piece before move it. check uigesturerecognizerstatebegan in state of recogniser(which think must doing in order start moving puzzle piece) , update property touch location view.
Comments
Post a Comment