iPhone Programming - UIImageViews:Dragging multiple Images
Uploader Comments (MilmersXcode)
All Comments (14)
-
Thank you very much, great tutorial!
-
thanx a lot !!!
-
@chasethemooseinc Yes it does matter. For 1 make sure you have another IF Statement for your 3rd image.
2nd, Make sure you have the .centers named correctly for each if statement otherwise, the center of the same image will only be draggable. Below is some code to help you with 3 images.
if ([touch view] == image) { image.center = location; } else if ([touch view] == image2) { image2.center = location; } else if ([touch view] == image3) { image3.center = location; }
-
@MilmersXcode Yes i have and i copied the code from you and i am using 3 images does tht mater
-
@chasethemooseinc Make sure you have checked the boxes in interface builder, Make sure you have got the if statements correct
Doesn't work :(
anybody's succeeded? help please...
inigo333 2 months ago
@inigo333 What are the problems you are encountering? I can help.
Milmer.
MilmersXcode 2 months ago
Ya I did that but I have a different colide statement that I put in erry thong works drag and such but not multituch
chasethemooseinc 1 year ago
@chasethemooseinc I don't know then mate. I am sorry. I have absolutely no idea how to do it. Multitouch is a tricky thing in my opinion. You could try adding [self setMultipleTouchEnabled:YES]; into the viewDidLoad method but I don't think that would work.
If you do find out how to do it give me a ping. Other than that I am extremely sorry I can't help you :(
MilmersXcode 1 year ago