我怎么知道什么时候有数据,现在我需要隐藏activity indicator
并显示图片..我希望在activity indicato
单元格上collectionview
r,直到从网络服务器加载图片。我做了很多但没有用。请提供指导。我使用gif
图片加载activity indiactor
NSURL *urlSTR=nil;
urlSTR = [[NSBundle mainBundle] URLForResource:@"list_loader_Anim@2x" withExtension:@"gif"];
UIImageView* dataimage=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 31, 31)];
dataimage.frame=CGRectMake(0, 0, 31, 31);
dataimage.image = [UIImage animatedImageWithAnimatedGIFData:[NSData dataWithContentsOfURL:urlSTR]];
dataimage.center = CGPointMake(cell.frame.size.width/2, cell.frame.size.height/2-70);