ios - UIView transitionFromView change view heigh -


I am using this code to change between 2 UIView :

  UIViewAnimationOptions animation type = UIViewAnimationOptionTransitionFlipFromLeft; [UIView transitionFromView: self.playlistTableView toView: self.playerView Duration: 0.5 Option: Animation Type Complete: ^ (BOOL Finish) {[self.containerViewSubviewToBack: self.upperView]; [Self.containerViewSubviewToBack: self.playerView]; Self.isPlaylistVisible =! Self.isplaylayVisible; IsControlsHidden = NO; }];   

And I saw a strange behavior when I lost the flap self.playerView 20px and after a second it raised back in normal frame size.

I try to change animation type to UIViewAnimationOptionLayoutSubviews and now when I make changes in the middle of the scene, this behavior does not occur is. Any ideas what can happen?

Please try this code.

  [self.upperView setHidden: yes]; [Self. Plain view sethead: no]; [UIView startup permissions: zero reference: NULL]; [UIView Set Animation Duration: 1.0]; [UIView Set AnimationConclusion: UIViewAnimationTransitionFlipFromLeft forView: Containerview Cache: Yes]; [UIView Set Animation Duration: 1.0]; [UIView commitAnimations]; [View Container Add-Sewview: Self. Playerview];   

To get a reverse case

  [self.upperView setHidden: NO]; [Self. Plain view sethead: yes]; [UIView startup permissions: zero reference: NULL]; [UIView Set Animation Duration: 1.0]; [UIView Set AnimationConclusion: UIViewAnimationTransitionFlipFromLeft forView: Containerview Cache: Yes]; [UIView Set Animation Duration: 1.0]; [UIView commitAnimations]; [View Container Add-SVview: Self. Overview];    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -