Changing text color upon selection of a specific cell/row in a UITableView on Iphone? -


I have a simple grouped UITableView that is fed from some arrays, changing the selected text color is not a problem, By using The selected reader method but as a result of it being applied in the same color, no matter which cell I choose. For example, I want text in cell 2 for green turn on selection, while all other The text of cells should be red, is there any way to accomplish this?

Can I use SelectionRowIndexPath? If so, then how?

Cheers, Adam, Sweden

You want to remove some things but I have got it.

  - (UITableViewCell *) TableView: (UITableView *) Table View CellForouaitindPath: (NSIndexPath *) Index Pathway {NSInteger Line = [Index Page Line]; Switch (indexPath.section) {case 0: switch (line) {case 0: // make some amazing breaks; Case 1: // Make some amazing breaks; Case 2: // Make some amazing breaks; Default: // Do something amazing if nothing else will break; }             break; Case 1: // Make some amazing breaks; Default: // Break something amazing; }  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -