Cell impression tracking
Each post in a feed has to send an impression event exactly once when it has been at least 50% visible for at least 1 second. How would you design this impression tracker on top of UITableView/UICollectionView?
Each post in a feed has to send an impression event exactly once when it has been at least 50% visible for at least 1 second. How would you design this impression tracker on top of UITableView/UICollectionView?
A tracker on the controller side registers candidates in willDisplay/didEndDisplaying, computes the visible ratio in scrollViewDidScroll from the overlap between the cell frame and the viewport, and sends the event once 1 second has passed since the ratio crossed 50%.
UIKitShort answerExpert
The project has hundreds of UITableView screens. You want to propose moving them to…
#uitableview
UIKitShort answerBasics
Why did Apple design UITableView with two protocols, dataSource and delegate, instead of…
#uitableview
UIKitShort answerAdvanced
Each cell in a UITableView flash sale list shows a countdown like "Time left 00:12:34"…
#uitableview
UIKitMultiple choiceBasics
In a UITableView that doesn't use estimatedRowHeight, what's the correct order these four…
#uitableview