uiview - How to remove SubView with slide in iOS? -
i tried add subview animation following codes.it's okay.
[self.view addsubview:pickerview]; pickerview.frame = cgrectmake(0, 0, 320, 50); [uiview animatewithduration:1.0 animations:^{ pickerview.frame = cgrectmake(0, 152, 320, 260); }];
and want remove subview slide animation above animation.
how can that?
thanks in advance.
you use animatewithduration completion block remove view
[uiview animatewithduration:1.0 animations:^{ pickerview.frame = //move out of screen } completion:^(bool finished) { [pickerview removefromsuperview]; }];
Comments
Post a Comment