程序员人生 网站导航

翻转View

栏目:互联网时间:2014-11-03 09:07:00

翻转View

by 伍雪颖

CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:1.0]; [self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:1]; [UIView commitAnimations];


------分隔线----------------------------
------分隔线----------------------------

最新技术推荐