I found out that the cell bounds is always (320, 44) when I dequeue reusable cell in the cellForRowAtIndexPath
method.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier];
if (!cell) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:kCellIdentifier_ActCalendarCell];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
}
cell.textLabel.text = @"test";
NSLog(@"%f,%f", cell.bounds.size.width, cell.bounds.size.height);
return cell;
}
Is that designed? When and where can i get the real bounds of cell?