It is very strange that sd_setImageWithURL
is working but got an error in sd_setShowActivityIndicatorView:YES
and sd_setIndicatorStyle
.
Below what I have done.
[cell.cellImgView sd_setShowActivityIndicatorView:YES];
[cell.cellImgView sd_setIndicatorStyle:UIActivityIndicatorViewStyleGray];
[cell.cellImgView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://img.youtube.com/vi/%@/hqdefault.jpg",[[[galleryDic objectForKey:@"data"] valueForKey:@"Video_id"] objectAtIndex:indexPath.row]]] placeholderImage:[UIImage imageNamed:@"youtube-video"] ];
I figured it out now, Well I have to import #import "UIView+WebCache.h"
too along with others then i have used following:
[cell.cellImgView sd_setShowActivityIndicatorView:YES];
[cell.cellImgView sd_setShowActivityIndicatorView:UIActivityIndicatorViewStyleGray];
Also, I removed the SDWebImage folder, what i used to integrate manually, then I have installed it through `POD' again, and now it is working as i wanted.