ABTableViewCell selected a delay

I have successfully subclassed ABTableViewCell for quick scrolling. I really recommend it to anyone who makes an application with large tables ...

http://blog.atebits.com/2008/12/fast-scrolling-in-tweetie-with-uitableview/

My problem is that when I click on a line, there is a slight delay until it is selected. I tried putting [cell setSelected: true] in the didSelectRowAtIndexPath method of the View table, and it still lags. Has anyone experienced this also with a subclass of ABTableViewCell?

I did not have this problem using regular UITableViewCells.

+3
source share
1 answer

A cell can be selected (on touchDown) or selected (on touchUp).

, ABTableViewCell:

if(self.selected) {
    backgroundColor = [UIColor clearColor];
    greyColor = [UIColor whiteColor];
    blackColor = [UIColor whiteColor];
}

:

if(self.highlighted || self.selected) {
    backgroundColor = [UIColor clearColor];
    greyColor = [UIColor whiteColor];
    blackColor = [UIColor whiteColor];
}

.

+6

Source: https://habr.com/ru/post/1718141/


All Articles