How to unselect a UITableViewCell when UITableView has scrolled?

I would imagine you could use the following answer.

Up vote 2 down vote favorite share g+ share fb share tw.

Iphone objective-c cocoa-touch uitableview uitableviewcell link|improve this question asked Jul 24 '10 at 0:53Sheehan Alam5,002360179 91% accept rate.

I would imagine you could use the following answer: URL1 Make sure your . H file looks similar to the following: @interface ItemSelectController : UITableViewController { Then place the following in your . M to detect when scrolling occurs and deselect whatever cell is selected.

-(void) scrollViewDidScroll:(UITableView *)sender { sender deselectRowAtIndexPath:sender indexPathForSelectedRow animated:YES; } The UIScrollViewDelegate in those funny brackets at the end means it implements that protocol. Meaning you have access to functions like scrollViewDidScroll. The top function up there overrides it to do what you want.

You wouldn't happen to have multi-select on, would you?

– Sheehan Alam Jul 24 '10 at 5:25 I am not sure what you mean by include your UITableView. Can you clarify? The answer makes it so that when your UITableView scrolls it sends a message to your Controller, which then deselects everything.

See at the end of the first line of the second code block, it says: (UITableView *) sender? – abelito Jul 24 '10 at 9:13.

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.

Related Questions