0
iPhone-coder posted
Error - Expression is not assignable , making draggable image in view
- (void) touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
UITouch *touch = [touches anyObject];
CGPoint currentpoint = [touch locationInView:self.view];
self.image1.center.x = currentpoint.x;
}
i want draggable image so i made code above and i got error when i setting center of image to current point of touchMoved
error is Expression is not assignable