objective c - How to move four image from one location to another location horizontally in ios -
i have 1 query. try develop 1 game abacus in ios. want move 4 images, in sequence , 1 location location horizontally in ios. can me please how in ios. refer link how move object 1 place other using animation in iphone applications using able move 1 image horizontally want move 4 image how this.
here's i've tried:
-(void)touchesmoved:(nsset *)touches withevent:(uievent *)event { uitouch * touch = [touches anyobject]; cgpoint loc = [touch locationinview:self.view]; [uiview beginanimations:nil context:null]; [uiview setanimationduration:2.0]; cgrect rect = cgrectmake(loc.x, _img.frame.origin.y, _img.frame.size.height, _img.frame.size.width); [_img setframe:rect]; [uiview commitanimations]; }
put images in view (lets container view) , move container view
Comments
Post a Comment