rowHeight が UITableView の高さに等しい 1 つのセルが必要です。Add 新しいセルを追加します。次に、roWHeight を持っているセルの総数で割ります。
私のviewDidLoadで、デフォルトの高さを設定しました。私は持っている:
myCellHeightNum = [[NSNumber alloc] initWithInt:100];
//not sure how to get the height of the UITableView so i set it to 100
私の-(IBAction) AddCell
方法では:
[myTableView beginUpdates];
double value = [myCellHeightNum doubleValue];
myCellHeightNum = [NSNumber numberWithDouble:value * value / numOfCells];
[myTableView reloadData];
idk、どんなアイデアでも。
ありがとう、
ベン