Determine coordinates of a UITableViewCell while scrolling

后端 未结 4 1937
生来不讨喜
生来不讨喜 2020-12-02 21:14

My goal is to have the UITableViewCells fade in/out when they are approaching the bounds of the UITableView and about to be covered/revealed.

The approach I have bee

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 21:53

    You can call

    - (CGRect)rectForRowAtIndexPath:(NSIndexPath *)indexPath;
    

    to get the rect of any given cell. This will contain it's coordinates in the origin struct within the rect.

提交回复
热议问题