在UIViewController
出现和消失时中执行一个自定义动画,在消失阶段,我希望能实现动画延迟足够长的时间,让我可以实现渐变效果。也就是在UINavigationController
运行popViewController
前允许UIViewController
执行一个自定义动画。能实现吗?
点击后退键时使用:
[UIView animateWithDuration:1.0 animations:^{
// your custom animation
} completion:^(BOOL finished) {
[self.navigationController popViewController];
}];