- (UITableViewCell *)tableView:(UITableView *)tableViewcellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *identifier = @"Cell";
CustomCell *cell = (CustomCell *)[tableViewdequeueReusableCellWithI
dentifier:identifier];
if (!cell) {
cell = [[[NSBundle mainBundle] loadNibNamed:@"CustomCell"owner:self options:nil] lastObject];
}
CGSize boundSize = CGSizeMake(216, CGFLOAT_MAX);
cell.workSituation.text = @"string......";
cell.workSituation.numberOfLines = 0;
CGSize requiredSize = [cell.workSituation.text sizeWithFont:[UIFontsystemFontOfSize:13] constrainedToSize:boundSizelineBreakMode:UILineBreakModeWordWrap];
CGRect rect = cell.frame;
rect.size.height = requiredSize.height;
cell.frame = rect;
return cell;
}
- (CGFloat)tableView:(UITableView *)tableViewheightForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [self tableView:tableViewcellForRowAtIndexPath:indexPath];
return cell.frame.size.height;
}
}
- (CGFloat)tableView:(UITableView *)tableViewheightForRowAtIndexPath:(NSIndexPath *)indexPath {
}