UITableView has the method rectForRowAtIndexPath:, but this does not exist in UICollectionView. I’m looking for a nice clean way to grab a cell’s bounding rectangle, perhaps one that I could add as a category on UICollectionView.
UITableView has the method rectForRowAtIndexPath: , but this does not exist in UICollectionView. I’m
Share
The best way I’ve found to do this is the following:
Objective-C
Swift
Then you can access the location through either
attributes.frameorattributes.center