2014-01-31 181 views
0

我怎麼會知道,當我有數據,現在當我需要隱藏activity indicator,並顯示圖像..我想activity indicato R ON collectionview細胞,直到從Web服務器加載圖像加載圖像上的CollectionView細胞活性指標。我做了所有,但無濟於事。請提供指導。我米使用gif圖像加載activity indiactor我想,直到從網絡服務器

NSURL *urlSTR=nil; 
    urlSTR = [[NSBundle mainBundle] URLForResource:@"[email protected]" 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); 

回答