title: lazyLoading CollectionView with activity indicator
body: <p>My issue is i'm getting activity indicator after image loaded but it should appear before image is loaded .i'm using SDWebImageProgressivedownload code but activity indicator is loading after image is displaying.please help me</p>
  
  <pre><code>__block UIActivityIndicatorView *activityIndicator =    [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:activityStyle];
  activityIndicator.center = imageView.center;
  activityIndicator.hidesWhenStopped = YES;
  [imageView setImageWithURL:[NSURL  URLWithString:@"http://www.domain.com/path/to/image.jpg"]
             placeholderImage:[UIImage imageNamed:@"placeholder.png"]
                      success:^(UIImage *image) { [activityIndicator removeFromSuperview]; }
  failure:^(NSError *error) { [activityIndicator removeFromSuperview]; }];
  
  [imageView addSubview:activityIndicator];
  [activityIndicator startAnimating];
  </code></pre>