Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テーブル ビューでカスタム セルを使用しています。セルの高さを設定しましたが、テーブルの 10 番目のセルのみサイズを変更する必要があります。
UITableViewDelegateメソッドを実装する必要がありますheightForRowAtIndexPath:
UITableViewDelegate
heightForRowAtIndexPath:
このようなもの:
- (CGFloat) tableView: (UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if ( indexPath.row == 10 ) return 100.0; return 40.0; }