ios - Highlight cell in my side bar -


i've created side bar (like facebook app) , works fine. 1 thing though want cell in table view (basically sidebar) highlighted if that's view active.

i have no idea how this. though in ib button there options different states not case.

any ideas?

you can create subclass of uitableviewcell , override method setselected:

- (void) setselected: (bool) selected animated: (bool) animated {     [super setselected: selected               animated: animated];      // configure view selected state } 

if need set selected cell can programmatically:

[mytableview selectrowatindexpath:[nsindexpath indexpathforrow:0 insection:0] animated:no scrollposition:0]; 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -