파란색으로 바뀌는 셀 텍스트를 클릭하면 다른 셀을 클릭 할 때까지 파란색으로 변합니다. UITableView에 세부 텍스트 레이블을 사용하고 있습니다. . 다음과 같은 사용자가UITableView 셀 색상이 사라지지 않습니다
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
.. your view changing code
}
- (무효)있는 tableView : (jQuery과 *)있는 tableView didSelectRowAtIndexPath : (NSIndexPath *) indexPath { \t \t CategoriesList * dvController = [[CategoriesList alloc] initWithNibName : @ "CategoriesList"번들 : nil]; \t // 선택한 개체를 새보기 컨트롤러에 전달합니다. \t //dvController.description = description; \t //dvController.title=title; \t //dvController.descriptionImage=descriptionImage; \t [self.navigationController pushViewController : dvController animated : YES]; \t [dvController release]; \t } – ali
코드에서 편집 중이지만 제대로 작동하지 않습니다. – ali
@ali "not working"은 잘못된 설명입니다. 정확히 작동하지 않는 것은 무엇입니까? – Vladimir