Quote:
Originally Posted by wilky94
Code:
if (touch.x, touch.y = one) {
}
request for member 'x' in 'touch' which is in a non-class type of 'UITouch'
do you know the exact code?
I will have to get back to you tomorrow please reply.
|
I got it working you need:
Code:
if (CGRectContainsPoint(one.frame, location)) {
one.center = location;
}