Revision: 43295
Updated Code
at March 21, 2011 08:03 by off
Updated Code
-(void)viewDidAppear: (BOOL)animated { [super viewDidAppear:animated]; NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; if(indexPath != nil) { [self.tableView deselectRowAtIndexPath:indexPath animated:YES]; NSLog(@"deselecting this fucking row"); } }
Revision: 43294
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 21, 2011 07:59 by off
Initial Code
-(void)viewDidAppear: (BOOL)animated { [super viewDidAppear:animated]; NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; if(indexPath != nil) { [self.tableView deselectRowAtIndexPath:indexPath animated:YES]; NSLog(@"deselecting this fucking row"); } }
Initial URL
http://haroldcampbell.wordpress.com/2009/02/02/quick-tip-1-fade-selected-uitableviewcell/
Initial Description
The iPhone/iTouch Contacts app has a very cool feature. Once you have tapped on a contact, the application highlights the contact’s name and then navigates to the contact’s details. When you hit the “All Contacts†button to return to the main view of the application, the UITableViewCell that was selected fades from blue to white. Neat! GIVE ME THE CODE! Here’s how it’s done. Add the code below to your UITableViewController. That’s it. That’s all.
Initial Title
Fade Selected UITableViewCell like in contacts app
Initial Tags
Initial Language
Objective C