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

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -