Can't seem to solve this. Please help. I think the code speaks for itself. CreateThumnail is a separate class and I wanna connect with it and can't really figure out how. Probably an easy task...
- (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;
}
So - the problem lies with in these two rows:
CreateThumbnail *place = [[CreateThumbnail alloc]init];
UIImage *thumb = [bigImage [place makeThumbnailOfSize:CGSizeMake(50,50)]];