Nested scrolling cell design
You need to put a horizontally scrolling UICollectionView inside a UITableViewCell in code (a carousel row like the App Store's Today tab). Who should own the inner collection view's dataSource and delegate?
You need to put a horizontally scrolling UICollectionView inside a UITableViewCell in code (a carousel row like the App Store's Today tab). Who should own the inner collection view's dataSource and delegate?
The row cell owns the inner collection view and acts as its dataSource/delegate, receiving the row's data at configure time and rendering it. If the outer view controller takes the dataSource for both collections, the indexPaths become two layers deep and bugs follow.
UIKitShort answerBasics
You've inherited a UITableView feed where, on fast scrolling, images briefly show up in…
#tableview #collectionview #cell-reuse
UIKitMultiple choiceBasics
Which statements about UITableView's dequeueReusableCell(withIdentifier:for:) and…
#tableview
UIKitShort answerBasics
You need a UITableView cell whose height varies with the length of a comment. What do you…
#tableview
UIKitShort answerAdvanced
You're moving a screen built with UICollectionViewFlowLayout and an index-based…
#collectionview