which touch event to use to slide an image??

Posted by hemant on Stack Overflow See other posts from Stack Overflow or by hemant
Published on 2010-05-17T12:41:47Z Indexed on 2010/05/18 0:31 UTC
Read the original article Hit count: 333

i am using the following function to move a ball from one location to another wherever user touches the screen..right now i dont have an i-phone to test my application and i am new to i-phone application programming so i wanted to know does this event will also make the ball slide from one point to another wen user maintains the touch??

-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event

{

UITouch *touch=[[event allTouches] anyObject]; CGPoint location=[touch locationInView:touch.view]; fball.center=location; }

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk