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

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -