Finally I have success in suppressing this double selection effect A cell becomes selected when the system detect a touch up inside event on it. Before it becomes selected, the cell have a highlight state which appear on touch To resolve this issue I have to override the (void)setghlighted:(BOOL)highlighted animated:(BOOL)animated method in my custom UITableViewCell and do nothing in this method This way the table will never have two selected style cells at the same time quote after edit This solution is enought for me, but it doesn't resolve my first request to change cell's selection on "touch in" event instead of "touch out" event well... I assume this is impossible. If we had this option we could select a cell when we just wanted to scroll in a tableview.
Finally I have success in suppressing this double selection effect. A cell becomes selected when the system detect a touch up inside event on it. Before it becomes selected, the cell have a highlight state which appear on touch.To resolve this issue I have to override the - (void)setghlighted:(BOOL)highlighted animated:(BOOL)animated method in my custom UITableViewCell and do nothing in this method.
This way the table will never have two selected style cells at the same time. Quote after edit This solution is enought for me, but it doesn't resolve my first request to change cell's selection on "touch in" event instead of "touch out" event.Well... I assume this is impossible. If we had this option we could select a cell when we just wanted to scroll in a tableview.
I don't know answer on your question, but have an offer. You can mark selected row with the checkmark in your -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath delegate method. And then call tableView deselectRowAtIndexPath:indexPath.
Well... I wasn't clear enought. I apologize. Actually in my case there is always one selected cell.
The problem is if a cell is selected the second one will have the selected style on touch but it won't be selected. I have already tried this method but didSelectRowAtIndexPath is called when you remove the finger from the cell not when you touch the cell and stay on it. I added a screen shot to show how it looks like.
Img190.imageshack. Us/img190/7184/cellsz. Jpg – roKenshin Oct 23 '09 at 14:37 I mean that if you only have to mark selected row, you can change its accessoryType to, for example, UITableViewCellAccessoryTypeCheckmark and call deselectRow in that delegate method.
– Morion Oct 23 '09 at 15:08.
There's no framework provided solution to select multiple rows. Morion has a good way to do this with checkmarks. You can also look at this article by Matt Gallagher where his implements what you wants.
I don't want multiple cell selection. I wasn't clear I apologize. I want to avoid two cell to have the selected style at the same time.
This gives application a real bad look. Look at the screenshot I added in my post. – roKenshin Oct 23 '09 at 14:42.
A cell becomes selected when the system detect a touch up inside event on it. Before it becomes selected, the cell have a highlight state which appear on touch. To resolve this issue I have to override the - (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated method in my custom UITableViewCell and do nothing in this method.
This way the table will never have two selected style cells at the same time. Event instead of "touch out" event. Well... I assume this is impossible.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.