代码如下
[UIView animateWithDuration:3 animations:^{
[imageview setTransform:(CGAffineTransformMakeTranslation(-600,0))];
[imageview setAlpha:0];
[imageview setAnimationRepeatCount:0];
}
];只能循环平移动画一次?如何一直循环下去
[UIView animateWithDuration:3 animations:^{
[imageview setTransform:(CGAffineTransformMakeTranslation(-600,0))];
[imageview setAlpha:0];
[imageview setAnimationRepeatCount:0];
}
];只能循环平移动画一次?如何一直循环下去
解决方案 »
- 使用UINavigationController的popViewControllerAnimated:YES函数,只执行了部分动画?
- cocos2d-x里的CCCamera不同,显示效果就不一样
- 请问MKMapView 点击大头针后 弹出的标志信息view 如何自定义
- 我开发的【三国杀问题答疑】终于通过苹果的审核上线了
- iPhone,iPad上怎么看一个软件有没有有p2p啊。
- 我想这个手游实现XX功能……等下,暂时不要做了
- 国内iphone/ipad主流用的是哪个版本的ios?
- 手机跨平台开发用什么语言比较好 C++ 还是 erlang? C++ 和erlang 有什么 区别?谢谢!哪个做跨平台简单快?
- IOS版微信,图文消息打开后空白的
- [求助]UICollectionView reloadData无法界面
- 关于UIButton使用setAttributedTitle:forState:之后无法改变标题颜色
- 急!急! iOS 上传的APP的时候,报错包内的Info.plist中没有CFBundleVersion,这个怎么解决
这是方法一(你设置重复次数的对象调用错了):
[UIView animateWithDuration:3 animations:^{
[self.webView setTransform:(CGAffineTransformMakeTranslation(-600,0))];
[self.webView setAlpha:0];
[UIView setAnimationRepeatCount:0];
}];
这是方法二:
// 把这个动画封装成一个方法
[UIView animateWithDuration:3 animations:^{
[self.webView setTransform:(CGAffineTransformMakeTranslation(-600,0))];
[self.webView setAlpha:0];
} completion:^(BOOL finished) {
// 在这里再调用这个方法本身
}];