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
Post a Comment