开发者

Three20 - Custom TTTableViewItemCell doesn't highlight when tapped

开发者 https://www.devze.com 2023-01-28 16:44 出处:网络
I\'m using three20 and have custom tableview item, and tableviewitem cell. Im pushing new controller not via item\'s URL but

I'm using three20 and have custom tableview item, and tableviewitem cell. Im pushing new controller not via item's URL but

- (void)didSelectObject:(id)object atIndexPath:(NSIndexPath*)indexPath

I also overide this method to highlight my cell when taped.

//call this to highlight row
- (BOOL)shouldOpenURL:(NSString*)URL {
    return NO;
}

When I use standard three20 table items and cells, the row is pefectly highlighted, but when I use my own cell and item it's not. Whac do I have t开发者_如何学编程o do? Thanks for help.


Make sure you have

self.selectionStyle = UITableViewCellSelectionStyleBlue;

set somewhere inside of your custom cell and it should do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消