iPhone SDK Tutorial: Touches in a UIImageView Part 2
Top Comments
All Comments (41)
-
hey nice tutorial, do you now how to make a program where you can move a picture only left or right, without up and down? so only the X-axis
please help me :)
-
Can you do a tutorial returning the rgb values of a pixel touched?
-
What is the code if my image is moving and disappear when touched?
Do I need to change the "anyObject? How does it change?
I hope you can help me
thanks
-
He sounds like a steriotypical nerd
-
hi i created an image in my app that the user can drag around however i would like it to follow a specific path so that when the user drags it it will not go outside of the path. how do i do this?
-
What is you don't have a reference to the squareView?
-
id it posible to make 2 imageviews and drag them separate
i tried it but then the image that i drag stays visible, and the other is gone
im using the 4.0 sdk
-
heh, I just couldn't resist. No offense anyway.
-
Whoops, I forgot!
uhm....
CGPoint location = [touch locationInView:touch.view];
if(CGRectContainsPoint([squareView frame], location)){
squareView.center = location;
}
siroganes 2 years ago 8
@siroganes THANK YOU so much
mlmusic1 1 year ago 2