views:

62

answers:

1

how do i create a restore point (to save the current position for restarting the animation later) for the say1 object (s and also how to call it. thanks.

- (void) doneThing { 

     say1.hidden = FALSE;
     [UIView beginAnimations:nil context:nil];
     [UIView setAnimationDuration:0.4];
     CGPoint destination = CGPointMake(152,-20);
     say.center = destination;
     [UIView commitAnimations];     
    }
A: 

Just store its location in an instance variable.

Chuck
i created a CGPoint object CGPoint p1; @property (nonatomic, readwrite) CGPoint p1;and insert it in the function p1 = say1.center;then when i wanted to restore i triedsay1.center = p1;but it didn't work.
omri