UIView animateWithDuration: delay: options: animations: completion:
2016-01-13 16:48
507 查看
//UIImageRenderingModeAlwaysTemplate Always draw the image as a template image, ignoring its color information UIImage *syncImage = [self.syncImageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; self.syncImageView.image = syncImage; [UIView animateWithDuration:3.0f delay:0.0f options:(UIViewAnimationOptionRepeat | UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionAutoreverse | UIViewAnimationOptionBeginFromCurrentState) animations:^{ self.syncImageView.tintColor = [UIColor orangeColor]; } completion:^(BOOL finished){ self.syncImageView.tintColor = [UIColor lightGrayColor]; }];
相关文章推荐
- Ant脚本封装ndk-build命令并执行打包启动-升级版
- UIActionSheet,UIAlertView,UISlider,UIProgressView,UISwitch,UISegmentControl,UIActivityIndicatorView基
- UIAlertViewController
- java24:Java API正则功能;StringBuilder;Date
- UI--单行文本水平触摸滑动效果
- UI--多行文本折叠展开效果
- CharSequence与String的区别
- iOS开发之键盘类型UIKeyboardType
- Solving “Dynamic Web Module 3.0 requires Java 1.6 or newer” in Maven Projects
- requests.get 和 bs4.BeautifulSoup
- How to handle various of Out Of Memory Issues
- UI-Tablelayout表格布局
- 在 iOS 中获取唯一标识符(UDID/UUID)
- EF框架step by step(9)—Code First Fluent API
- UI-TextView省略号
- UI组件之ImageView及其子类(一)ImageView显示图片
- SQL Server中的uniqueidentifier类型
- 当前uistatusBar前景为白色,当增加uiwindow后,uistatusBar变为黑色的解决方法
- duilib学习记录之创建自定义控件
- 205,UIWindow