rs/SDWebImage — Issue #76: Crash with cellForRowAtIndexPath table
Author: fcesc
Created: 2012-03-06 14:49:44+00:00
State: open

Hi,

My app crash in cellForRowAtIndexPath method. I get that error response.

2012-03-06 15:27:14.111 RWeb[406:f803] -[UIImageView setImageWithURL:]: unrecognized selector sent to instance 0x6b96680
2012-03-06 15:27:14.113 RWeb[406:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:]: unrecognized selector sent to instance 0x6b96680'
*** First throw call stack:

Any suggestion?

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString *CellIdentifier = @"cellesidioma";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if(self==nil) { //{ Sense això també funciona
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}

[cell.imageView setImageWithURL:[NSURL URLWithString:@"http://http://192.168.1.104/ima/ct.png"]];

[[cell textLabel] setText:[self.nomIdiomes objectAtIndex: [indexPath row]]];

return cell;
}