Friday, 24 February 2012

view like the easy out and view like small to big + iphone

http://stackoverflow.com/questions/8175367/iphone-uiview-animation-resize-in-like-disappear-in-water-and-comes-back-floatin
CGRect originalFrame = scheduleView.frame;
   
    [UIView animateWithDuration:1.0 delay:0.0 options:UIViewAnimationCurveEaseInOut animations:^{
        CGRect frame = scheduleView.frame;
        frame.origin = scheduleView.center;
        frame.size = CGSizeMake( 0, 0 );
        scheduleView.frame = frame;
    } completion:^(BOOL finished) {
        // Do something with the view
       
        [UIView animateWithDuration:1.0 delay:0.0 options:UIViewAnimationCurveEaseInOut animations:^{
           scheduleView.frame = originalFrame;
        } completion:^(BOOL finished) {
            return;
        }];
       
        return;
    }];

No comments:

Post a Comment