UIImageView のフレームを UITableViewCell 内に印刷しようとしていますが、 {{0,0},{0,0}} として取得しています
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
// Configure the cell...
if(cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
cell.textLabel.font = [UIFont fontWithName:@"Arial" size:13.0f];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
//cell.imageView.frame = CGRectMake(2, 2, 38, 38);
}
NSString *imageName = [[itemsArr objectAtIndex:indexPath.row] objectForKey:@"image"];
cell.imageView.image = [UIImage imageNamed:imageName];
cell.textLabel.text = [[itemsArr objectAtIndex:indexPath.row] objectForKey:@"title"];
NSLog(@"Image Frame : %@", NSStringFromCGRect([cell.imageView frame]));
return cell;
}
私は何を間違っていますか?