SDWebimage占位符中的活动指示器

Mhm*_*adi 5 iphone uiimageview ios7 xcode5

如何SDWebImage使用占位符设置活动指示器UIImageView

Rus*_*abh 0

[indicator startAnimating];//指示器开始动画

    //Load image
[imageView setImageWithURL:imageURL placeholderImage:[UIImage imageNamed:@"placeholder.png"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) 
    {

         [indicator stopAnimating]; //indicator stop animating after image load

    }];
Run Code Online (Sandbox Code Playgroud)