これを解決することはできません。助けてください。コードはそれ自体を物語っていると思います。CreateThumnail は別のクラスであり、接続したいのですが、その方法がわかりません。おそらく簡単な作業...
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"messageCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
// Configure the cell...
UIImage *bigImage = [UIImage imageNamed:@"myimage.jpg"];
CreateThumbnail *place = [[CreateThumbnail alloc]init];
UIImage *thumb = [bigImage [place makeThumbnailOfSize:CGSizeMake(50,50)]];
cell.imageView.image = thumb;
cell.textLabel.text = @"First Lastname";
cell.detailTextLabel.text = @"Message, blabla";
return cell;
}
したがって、問題は次の 2 つの行にあります。
CreateThumbnail *place = [[CreateThumbnail alloc]init];
UIImage *thumb = [bigImage [place makeThumbnailOfSize:CGSizeMake(50,50)]];