开发者

Highlight table view cells when user drags across rows

开发者 https://www.devze.com 2022-12-25 11:50 出处:网络
I have a grouped t开发者_开发知识库able view that does not need to scroll. I\'d like each cell to highlight as the user moves their finger down the screen and call didSelectRowAtIndexPath on release.

I have a grouped t开发者_开发知识库able view that does not need to scroll. I'd like each cell to highlight as the user moves their finger down the screen and call didSelectRowAtIndexPath on release.

This behaviour can be seen done by apple in 'settings > mail > add account'?

I can't seem to replicate it myself, all I can get is the default, where the cell deselects as soon as the user moves their finger.


I think the way that that example is done is not a UITableView, instead i think they draw the "table" from buttons. This would then not allow the scrolling feature while allowing you to have the buttons highlighted.

Hope this pushed you in the right direction.

Seb kade

0

精彩评论

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

关注公众号