2012-02-11 5 views

답변

1

이 cellForRowAtIndexPath에서 사용하는 어떤 세포 파악 코드를 복사 아무 소용이 없습니다 : heightForRowAtIndexPath에 : 그냥 경우의 무리와 다른 if 문 년대 heightForRowAtIndexPath를 들어

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    UITableViewCell *cel; 
    NSString *CellIdentifier; 
    // whatever code you use to figure out what cell to use 
    if ([CellIdentifier isEqualToString:@"Cell"]) { 
     // create & configure "Cell"-cell 
    } 
    else { 
     // configure Standard cell 
    } 
    return cell; 
} 

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { 
    NSString *CellIdentifier; 
    // whatever code you use to figure out what cell to use 
    if ([CellIdentifier isEqualToString:@"Cell"]) { 
     return 200.0f; 
    } 
    else { 
     return 44.0f; 
    } 
} 
+0

을 (indexpath == x). 하지만 난 너무 cellID에 따라 행 높이 변경을 할 수 있어야합니다 –

관련 문제