Custom view transition in OpenGL ES

前端 未结 4 1122
野趣味
野趣味 2021-02-01 10:21

I\'m trying to create a custom transition, to serve as a replacement for a default transition you would get here, for example:

[self.navigationController pushVie         


        
4条回答
  •  天命终不由人
    2021-02-01 10:56

    I recently write some transitioning animation betweeen view controllers like you. If you want to get any extra info from the invisible view, you can try delaying the transition like this :

    - (void)animationFromModalView:(UIView *)modalView toMasterView:(UIView *)masterView
    {
    
    [masterView setNeedsLayout];
    [masterView layoutIfNeeded];
    
    [self performSelector:@selector(delayAnimationFromModalViewToMasterView) withObject:nil afterDelay:.1f];
    }
    

提交回复
热议问题