2009-09-21 58 views
3

我已經成功實現了ABTableViewCell的快速​​滾動功能。 我真的把它推薦給任何人誰是將某個應用大tableViews ...ABTableViewCell selected lag

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

我與它的問題是,當我點擊一排,有一個小的延遲,直到它被選中。我試圖在tableView的didSelectRowAtIndexPath方法中放置[cell setSelected:true],但它仍然滯後。有沒有人用ABTableViewCell子類來體驗這一點?

我沒有使用普通的UITableViewCells這個問題。

回答

6

單元格可以突出顯示(touchDown)或選中(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]; 
} 

而殺死小區選擇滯後。

+0

如果(self.selected)語句位於何處? – zakdances 2012-05-04 22:38:43

+0

我很久沒有用過ABTableViewCell了。只需搜索ABTableViewCell.m即可。 – samvermette 2012-05-05 08:39:33