How to remove SubView with slide in iOS?
===

I tried to add SubView with 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 i also want to remove the subView with slide animation like above animation.

How can i do that?

Thanks in advance.


