First add your view:
self.postStatusView.frame = CGRectMake(0, 490, 320, 460);
To animate from bottom to top, add below:
[UIView animateWithDuration:0.5 delay:0.1 options: UIViewAnimationOptionCurveEaseIn animations:^{ self.postStatusView.frame = CGRectMake(0, 0, 320, 460); } completion:^(BOOL finished){ }]; [self.view addSubview:self.postStatusView];
To delete a view
[UIView animateWithDuration:1.5 delay:0.5 options: UIViewAnimationOptionCurveEaseIn animations:^{ self.postStatusView.frame = CGRectMake(0, 490, 320, 460); } completion:^(BOOL finished){ if (finished) [self.postStatusView removeFromSuperview]; }];
source share