EGOImageView *imageView = [[[EGOImageView alloc]initWithFrame:CGRectMake(kBaseViewOriginX, kBaseViewOriginY, kBaseVieWidth, kBaseViewHeight) ] autorelease];
imageView.imageURL = [NSURL URLWithString:@"http://imgsrc.baidu.com/forum/pic/item/9d82d158ccbf6c811c42177ebc3eb13533fa402a.jpg"];
[self.view addSubview:imageView];
这样就可以了
//清理缓存~
[[EGOCache currentCache] clearCache];
//获得 下载好的图片
UIImage *getImage = [[EGOImageLoader sharedImageLoader]imageForURL:[NSURL URLWithString:@"http://imgsrc.baidu.com/forum/pic/item/9d82d158ccbf6c811c42177ebc3eb13533fa402a.jpg"] shouldLoadWithObserver:nil ];
轻松掌握EGOImageView:高效加载网络图片的类库
本文介绍了EGOImageView类库的使用方法,包括加载网络图片、清理缓存及获取下载图片的功能。通过实例演示,帮助开发者快速上手,提升图片加载效率。

被折叠的 条评论
为什么被折叠?



