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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -