Edit: I found the solution here SDWebImage : setImageWithURL fails when used to set image of a UITableViewCell
I have UITableView that's utilizing SDWebImage and it worked great but I decided to remove ShareKit from my app. All I believe I did was delete ShareKit, remove any references to it and then reinstall ObjectiveFlickr, JSONKit and LFWebAPIkit. All of which I don't use in this table. After I did that, everything works, except for this tableview.
I get this error:
-[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x86b31a0
I have no problem compiling and with autocomplete and I even deleted and readdded SDWebImage but it doesn't do anything. Everything runs fine but when it tries to load the table with the UIImageView it crashes immediately on this line:
[cell.imageView setImageWithURL:[v thumbURL] placeholderImage:[UIImage imageNamed:@"46-movie-2.png"]];
Here's my code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"YTVVideoTableCell";
YTVVideoTableCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[YTVVideoTableCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
Video *v = [[[VideoStore sharedStore] allItems] objectAtIndex:[indexPath row]];;
[cell.imageView setImageWithURL:[v thumbURL] placeholderImage:[UIImage imageNamed:@"46-movie-2.png"]];
[cell setController:self];
[cell setTableView:[self tableView]];
[[cell titleLabel] setText:[v title]];
[[cell titleLabel] alignBottom];
return cell;
}
Any ideas of what went wrong when I removed ShareKit? Any ideas how to troubleshoot?