I found that this method is a delegate method of a UITableView:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 20; }
I'm really confused, why is this not a data source method?
This answer gives a good overview of the rough separation between methods UITableViewDataSourceand UITableViewDelegate: The difference between UITableViewDelegate and UITableViewDatasource
UITableViewDataSource
UITableViewDelegate
In this case, heightForRowAtIndexPath has more in common with the UITableView layout than with the contents in individual cells, so it was grouped with delegate methods (although cell contents and height can often be very large related)
-tableView heightForRowAtIndexPath . . . , , UITableViewDelegate.
-tableView heightForRowAtIndexPath
Source: https://habr.com/ru/post/1619294/More articles:How to get kGADAdSizeSmartBannerPortrait to work - iosAngular ng-click does not work with $ compilation - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1619291/how-can-i-get-firebase-deploy-email-or-token-parameters-to-work&usg=ALkJrhid6I2XgtP336Qtv0RkJJjk62_2IgWeird Error on Visual Studio - "you can use the navigation bar to switch context" - c #Реагировать "Инвариантное нарушение" при рендеринге таблицы - javascriptCan execute UPDATE clause in WHERE? - sqlWhy is this solution to the queen's dilemma so much slower than in Haskell? - recursionHow to move the underline to the left? - javaJS delete last child? - javascriptAda: behavior like pthread_barrier_wait? - adaAll Articles