Hi there I have situation where in an iPad app my master controller
has list and details controller have its details , a typical UISplitViewController
pattern.
What I want to achieve is , my first row should be initially selected and later I want to give selection choice to user.
I am using cell's setSelected
and in didSelectRowAtIndexPath
method removing selection like this.
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:NO];
NSIndexPath* path = [NSIndexPath indexPathForRow:0 inSection:0];
UITableViewCell* cell = [tableView cellForRowAtIndexPath:path];
[cell setSelected:NO];
}
for initial cell but my none cell is getting selected after that
please help me out.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…