2012-03-29 2 views

답변

0

이하려고 ....

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 

    static NSString *CellIdentifier = @"Cell"; 

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 
    if (cell == nil) { 
     cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 
    } 
    cell.backgroundColor = [UIColor clearColor]; // clear the cell background color 

    // Configure the cell. 

    return cell; 
} 
0

당신은 코드

를 사용할 수 있습니다

1) cell.selectionStyle = UITableViewCellSelectionStyleRed;

OR

2) 셀 = [[[있는 UITableViewCell ALLOC] initWithFrame : CGRectZero를 reuseIdentifier : CellIdentifier] 오토 릴리즈]; 위의 코드의

UIView *selectionColor = [[UIView alloc] init]; 
selectionColor.backgroundColor = [UIColor colorWithRed:(245/255.0) green:(245/255.0) blue:(245/255.0) alpha:1]; 
cell.selectedBackgroundView = selectionColor; 

사용은 내가

를 해결하려는 문제가 해결되지 여전히 경우 문제를 해결 코드를 넣어 것입니다
관련 문제