วันศุกร์ที่ 1 มีนาคม พ.ศ. 2556

UIView beginAnimations Finished


[UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:0];
    [UIView setAnimationDelegate:self];
    [UIView setAnimationDidStopSelector:@selector(animationFinished:finished:context:)];
    self.view.frame = CGRectMake(x,y,width,height);
    [UIView commitAnimations];

-(void)animationFinished:(NSString *)animationID
                finished:(NSNumber *)finished
                 context:(void *)context
{
 NSLog(@"Animation Finished");
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น