我使用以下代码为页面设置动画.
[UIView a animateWithDuration:0.3
animations:^{
text.alpha=0;
} completion:^(BOOL finished) {
//some code
}];
Run Code Online (Sandbox Code Playgroud)
现在我想用一些动画风格(卷曲波纹等)来改变视图.我该怎么做?
小智 7
[UIView transitionWithView:superView duration:1.0
options:UIViewAnimationOptionTransitionCurlUp
animations:^{
[self.view removeFromSuperview];
[superView addSubview:newView];
}
completion:NULL];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6091 次 |
| 最近记录: |