How set accessory type when tabel view is enbled to editing?
Posted
by Madan Mohan
on Stack Overflow
See other posts from Stack Overflow
or by Madan Mohan
Published on 2010-05-06T10:11:40Z
Indexed on
2010/05/06
10:18 UTC
Read the original article
Hit count: 394
Hi Guys,
I am using the UITableView properties to edit it. theTableView.editing = YES; theTableView.allowsSelectionDuringEditing = YES;
It is working fine, the row is selected and I am getting into the next controller but I need to display the the accessoryType in the row. I am using below line for that but even though it is not working. Is there any property or any thing missing to display the indiactor.
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
I am using the below code for table view.
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];
Please help me.
THank You, Madan Mohan
© Stack Overflow or respective owner