Xcode 4.3 tutorial Pan Gesture (move objects around)

Published: 31 May 2012
on channel: Andreas Asproudis
12,250
36

Hi this is my first tutorial! thank you all for watching
See it on HD quality for best results

code: .h file
(IBAction)handlePan:(UIPanGestureRecognizer *)recognizer;

code: .m file
(IBAction)handlePan:(UIPanGestureRecognizer *)recognizer {

CGPoint translation = [recognizer translationInView:self.view];
recognizer.view.center = CGPointMake(recognizer.view.center.x + translation.x,
recognizer.view.center.y + translation.y);
[recognizer setTranslation:CGPointMake(0, 0) inView:self.view];

}

More coming soon and i will make a blog with all the tutorials that i am going to make


On this page of the site you can watch the video online Xcode 4.3 tutorial Pan Gesture (move objects around) with a duration of hours minute second in good quality, which was uploaded by the user Andreas Asproudis 31 May 2012, share the link with friends and acquaintances, this video has already been watched 12,250 times on youtube and it was liked by 36 viewers. Enjoy your viewing!