//参数1:改变的view 参数2:动画时长 参数3:动画类型 参数4:
[UIView transitionWithView:self.changeView duration:1 options:UIViewAnimationOptionTransitionFlipFromRight animations:^{
self.changeView.backgroundColor = [UIColor blackColor];
} completion:^(BOOL finished) {
if (finished) {
NSLog(@"finished");//写上要处理的内容就是UIView属性动画和过渡动画的封装
}
}];
}
[UIView transitionWithView:self.changeView duration:1 options:UIViewAnimationOptionTransitionFlipFromRight animations:^{
self.changeView.backgroundColor = [UIColor blackColor];
} completion:^(BOOL finished) {
if (finished) {
NSLog(@"finished");//写上要处理的内容就是UIView属性动画和过渡动画的封装
}
}];
}