I have a simple issue with UITableViewCell.
What I want is to change the text color of a selected cell.
In my cellForRowAtIndexPath method, I set:<
set a global : int m_selectedCell;
modify it in
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
and
just add
if(m_selectedCell == indexPath.row){
...
...
}else{
}
in
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath
that's all !