Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
06/04/13 10:36 AM (12 years ago)

Menu Highlight stays (annoying)

Can anyone help me so when a user taps a menu item and taps the back button the highlighted section will fade back to normal instead of hanging there?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/04/13 02:46 PM (12 years ago)
This might work. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [tableView deselectRowAtIndexPath:indexPath animated:YES]; } Cheers! -- Smug
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
06/05/13 08:45 AM (12 years ago)
Hey there Auggnet, did Smug's tip work? -- Niraj
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
06/06/13 03:14 PM (12 years ago)
im trying it now, let me see
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
06/06/13 03:17 PM (12 years ago)
do i need to call this method? or is it self initiated .
 
Auggnet
Veteran developer
Profile
Posts: 225
Reg: Nov 20, 2012
USA
2,550
like
06/06/13 03:24 PM (12 years ago)
yes it worked. simply call [tableView deselectRowAtIndexPath:indexPath animated:YES]; right here //on row select - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [BT_debugger showIt:self theMessage:[NSString stringWithFormat:@"didSelectRowAtIndexPath: Selected Row: %i", indexPath.row]]; >>>> [tableView deselectRowAtIndexPath:indexPath animated:YES]; <<<< its in the menu simple screen.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.