ios - UIView transitionFromView change view heigh -
I am using this code to change between 2 And I saw a strange behavior when I lost the flap I try to change Please try this code. To get a reverse case 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; }];
self.playerView 20px and after a second it raised back in normal frame size.
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?
[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];
[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
Post a Comment