2010-05-06 4 views
2

UITableView 속성을 사용하여 편집하고 있습니다. theTableView.editing = YES; theTableView.allowsSelectionDuringEditing = YES;테이블보기가 편집 상태로 전환 될 때 부속 유형을 설정하는 방법은 무엇입니까?

잘 작동하고 행이 선택되어 있고 다음 컨트롤러에 들어가기는하지만 행에 accessoryType을 표시해야합니다. 나는 아래 라인을 사용하고 있지만 작동하지는 않습니다. indiactor를 표시하기 위해 속성이나 누락 된 항목이 있습니까?

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

테이블보기에 다음 코드를 사용하고 있습니다.

theTableView = [[UITableView alloc] initWithFrame:tableRect style:UITableViewStyleGrouped]; 
theTableView.editing = YES; 
theTableView.allowsSelectionDuringEditing = YES; 
theTableView.delegate = self; 
theTableView.dataSource = self; 
theTableView.scrollEnabled=YES; 
theTableView.separatorColor = [UIColor lightGrayColor]; 
theTableView.autoresizingMask=YES; 
theTableView.allowsSelection=YES; 
theTableView.sectionHeaderHeight=5; 
theTableView.sectionFooterHeight=5; 

[myView addSubview:theTableView]; 

도와주세요.

당신은있는 UITableViewCell 클래스의 editingAccessoryType 속성을 사용할 수 있습니다, 마단 모한

답변

7

을 주셔서 감사합니다.

+0

고맙습니다. –

관련 문제