IOS学习之路二十四(UIImageView 加载gif图片)
2013-09-16 18:56
447 查看
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学习之路二十二(UIAlertView获得文本框内容及添加北京图片)
- iPhone学习之路 TableView实现动态加载图片
- iOS(9) SDWebImage 里面给 UIImageView 加载图片的逻辑是什么样的
- IOS学习之navigationBar上添加图片(UIImageView)以及文字(UILabel)
- IOS学习之路二十二(UIAlertView获得文本框内容及添加北京图片)
- IOS开发---菜鸟学习之路--(二十四)-iOS7View被导航栏遮挡问题的解决
- iOS-UIImageView加载网络下载的图片(异步+多线程)
- 【iOS知识学习】_tableview滑动时图片加载缓慢解决办法
- UIImageView加载动态gif图片
- ios UIImageView异步加载网络图片2
- IOS 图片异步加载 - UIImageView(AFNetworking)
- ios学习--结合UIImageView实现图片的移动和缩放(转)
- iOS学习之路-图片轮播(UIScrollerView)
- iOS_AFNetworking_UIImageView+AFNetworking(实现图片异步加载)
- 【学习ios之路:UI系列】获取通过UIImagePackerController获取的系统相册图片的名称信息及保存系统相册到本地
- iOS开发之初:根据一张gif图,返回其中每一帧的图片数组(ImageView加载gif))
- Xamarin.ios 使用webview加载gif图片
- IOS学习之路二十三(EGOImageLoading异步加载图片开源框架使用)