以下の内容はhttps://anton0825.hatenablog.com/entry/20121007/1350381656より取得しました。


UITableViewに異なる高さのセルを表示する方法

  • (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

を実装して各セルの高さを返してやればいい。
てかデフォルトの実装を↓のようにしてくれればいいのに。。パフォーマンスを上げるために固定値にしてるのかな?

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [self tableView:self.tableView cellForRowAtIndexPath:indexPath];
    return cell.frame.size.height;
}

参考:[iPhone] UITableViewCell の高さを表示する内容によって変える方法 | Sun Limited Mt.




以上の内容はhttps://anton0825.hatenablog.com/entry/20121007/1350381656より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14