iPhone SDK Tutorial Drag Ball
Loading...
9,435
Loading...
Uploader Comments (brandflakeapps)
see all
All Comments (6)
-
@brandflakeapps I get an error on the last line about center not being found in UIImage...help?
-
how do u make it so the image will only drag so it wont jump if u tap on the other side of the screen
-
and how can i get this work when i want to have 2 images which can be dragable
-
thx a lot m8 !!!!!!!!!!
Loading...
what are the last two lines in .m
solichan 2 years ago
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *myTouch = [[event allTouches] anyObject];
ball.center = [myTouch locationInView:self.view];
}
brandflakeapps 2 years ago