用UIImageView实现几张图片轮转已达到动画效果
2016-02-25 10:58
741 查看
let imageView = UIImageView(frame: CGRect(x:0 , y: 5, width: 100, height: 100)) self.view.addSubview(imageView) let imageArray = NSArray(objects: UIImage(named: "codeing1.png")!,UIImage(named: "codeing2.png")!,UIImage(named: "codeing3.png")!,UIImage(named: "codeing4.png")!) imageView.animationImages = imageArray as? [UIImage] imageView.animationDuration = 1.0 imageView.animationRepeatCount = 0 imageView.startAnimating()
相关文章推荐
- iOS UIImage 图像旋转
- [leetcode] 187. Repeated DNA Sequences
- 使用Fragment来处理Andoird app的UI布局的实例分享
- ligerui tab使用
- JCIP-5-Building Blocks
- 2016.02.25,英语,《Vocabulary Builder》Unit 02
- Parcel: unable to marshal value或Parcel: unable to marshal value null 问题
- Xcode的Built Setting里的一些设置和配置说明。
- UIView和其子类的几个初始化函数执行的时机
- iOS6新特征:UICollectionView介绍
- Solr基础教程之Query(四)
- UIPickerView的使用(三)
- UIPickerView的使用(二)
- Android UI学习 - FrameLayou和布局优化
- serialVersionUID的作用
- Android UI--自定义ListView(实现下拉刷新+加载更多)
- Poj2785 (4 Values whose Sum is 0)
- 解决SOAPUI 调用WCF的服务返回由于 AddressFilter 在 EndpointDispatcher 不匹配,To 为“”的消息无法在接收方处理。请检查发送方和接收方的 Endpoin
- java <? super Fruit>与<? extends Fruit>
- SQL server 在OPENQUERY中使用参数