rowHeight가 UITableView의 높이와 같은 셀 하나를 원합니다. Add 새 셀을 추가하면 roWHight가 총 셀 수로 나눕니다.나는 새로운 셀을 UITableView에 추가 할 때 rowHeight를 높이고 싶습니다.
내 viewDidLoad에서 기본 높이를 설정합니다. 내가 가진 내 -(IBAction) AddCell
방법
myCellHeightNum = [[NSNumber alloc] initWithInt:100];
//not sure how to get the height of the UITableView so i set it to 100
내가 가진 :
[myTableView beginUpdates];
double value = [myCellHeightNum doubleValue];
myCellHeightNum = [NSNumber numberWithDouble:value * value/numOfCells];
[myTableView reloadData];
는 나도 몰라, 어떤 아이디어.
감사합니다,
벤
무엇 cellFroRowAtIndexPath에서 편집 된 정의 셀에 대해? – geminiCoder