編集:ここで解決策を見つけましたSDWebImage:UITableViewCellの画像を設定するために使用するとsetImageWithURLが失敗します
SDWebImageを利用するUITableViewがあり、うまく機能しましたが、アプリからShareKitを削除することにしました。私がしたと思うのは、ShareKitを削除し、それへの参照をすべて削除してから、ObjectiveFlickr、JSONKit、およびLFWebAPIkitを再インストールすることだけでした。この表ではすべてを使用していません。それを行った後、このテーブルビューを除いてすべてが機能します。
このエラーが発生します:
-[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x86b31a0
コンパイルとオートコンプリートに問題はなく、SDWebImageを削除して再追加したこともありますが、何も実行されません。すべて正常に実行されますが、UIImageViewを使用してテーブルを読み込もうとすると、次の行ですぐにクラッシュします。
[cell.imageView setImageWithURL:[v thumbURL] placeholderImage:[UIImage imageNamed:@"46-movie-2.png"]];
これが私のコードです:
- (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;
}
ShareKitを削除したときに何がうまくいかなかったのかについてのアイデアはありますか?トラブルシューティングの方法について何かアイデアはありますか?