I mean that looks like an overkill. It already has cellForRowForIndexPath
Once UITableViewSourceDelegate got the cell, it can easily got the height by computing the height of that cell.
So why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
heightForRowAtIndexPathis called for every row in the table in order to compute its total height and consequently set the correct size of the scroll indicator.On the other hand
cellForRowForIndexPathis called only for the visible cells.