IOS学习之路二十四(UIImageView 加载gif图片)
2013-09-16 14:07
519 查看
UIImageView 怎样加载一个gif图片我还不知道(会的大神请指教),不过可以通过加载不同的图片实现gif效果
代码如下:
转载请注明:
新浪微博:http://weibo.com/u/3202802157
代码如下:
UIImageView* animatedImageView = [[UIImageView alloc] initWithFrame:self.view.bounds]; animatedImageView.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"image1.gif"], [UIImage imageNamed:@"image2.gif"], [UIImage imageNamed:@"image3.gif"], [UIImage imageNamed:@"image4.gif"], nil]; animatedImageView.animationDuration = 1.0f; animatedImageView.animationRepeatCount = 0; [animatedImageView startAnimating]; [self.view addSubview: animatedImageView];
转载请注明:
新浪微博:http://weibo.com/u/3202802157
相关文章推荐
- IOS学习之路二十四(UIImageView 加载gif图片)
- IOS学习之路二十四(UIImageView 加载gif图片)
- iOS学习笔记13— UITableView封装之下拉-上提-图片异步加载
- IOS学习之路二十三(EGOImageLoading异步加载图片开源框架使用)
- iOS开发之初:根据一张gif图,返回其中每一帧的图片数组(ImageView加载gif))
- IOS学习笔记(十)之UIImageView图片视图的基本概念和使用方法
- 【学习ios之路:UI系列】实现轮播图效果(UIImageView,UIScrollView,UIPageControl,NSTimer相结合)
- ios学习--结合UIImageView实现图片的移动和缩放
- 【iOS知识学习】_tableview滑动时图片加载缓慢解决办法
- Xamarin.ios 使用webview加载gif图片
- IOS学习笔记(十)之UIImageView图片视图的基本概念和使用方法
- IOS学习之路二十三(EGOImageLoading异步加载图片开源框架使用)
- 程序猿之路-----学习MJ视频总结1---UIImageView和UIButton的区别 、iOS懒加载
- ios开发 button或UIimageview加载图片显示颜色不显示图片
- 程序猿之路-----学习MJ视频总结1---UIImageView和UIButton的区别 、iOS懒加载
- IOS学习之navigationBar上添加图片(UIImageView)以及文字(UILabel)
- IOS学习之路二十二(UIAlertView获得文本框内容及添加北京图片)
- IOS学习之路二十二(UIAlertView获得文本框内容及添加北京图片)
- IOS开发---菜鸟学习之路--(二十四)-iOS7View被导航栏遮挡问题的解决
- iOS UIImageView 网络加载图片自适应大小问题