0
NSUInteger index, count = [delegate.thumbArr count];
for (index = 0; index < count; index++)
{
NSString *tPath = [[NSString alloc] init];
tPath = [delegate.thumbArr objectAtIndex:index];
NSURL *turl = [NSURL URLWithString:tPath];
UIImage *_thumb =[self getImage:turl];
// Adding images to the NSMutableArray TViews
[TViews addObject:_thumb];
UIImage *_thumb2 =[TViews objectAtIndex:index];
NSLog(@"Our Image is= %@", _thumb2);
[thumbView.imageView setImage:_thumb2];
}
- (UIImage*)getImage:(NSURL*)myurl
{
SDWebImageManager *manager = [SDWebImageManager sharedManager];
UIImage *cachedImage = [manager imageWithURL:myurl];
if(!cachedImage)
{
[manager downloadWithURL:myurl delegate:self];
}
else
return cachedImage;
}
- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image
{
}
但問題是,當我試圖登錄圖像不displating ...的UIImage不顯示
NSLog(@"Our Image is= %@", _thumb2);
是給我NULL ...幫我解決這個問題...
意味着從我的縮略圖中獲取網絡圖像我必須做的...我必須從網上顯示超過15個圖像。 u能告訴我什麼想法..... – neoJacob
我想從網上我所有的圖片,如果它不是在我的緩存..否則,在下載最高速度和存儲到某些陣列。這是我使用的SDWebImageManger的原因..可處Utell我任何ither想法 – neoJacob
沒有referece導遊提供SDWebImageManager ... u能告訴我,我該如何使用,在我的情況..... – neoJacob