nsscreencast / comments

Public comments on NSScreencast.com
0 stars 0 forks source link

A Tale of UIScrollView Customization - NSScreencast #100

Open subdigital opened 3 years ago

subdigital commented 3 years ago

Written on 07/11/2013 14:55:13

URL: https://nsscreencast.com/episodes/75-a-tale-of-uiscrollview-customization?player=alternate&autoplay=true

subdigital commented 3 years ago

originally written by Iraê on 07/16/2013 00:15:03

I noted that the scroll bars are not present on the second solution. Is this a configuration on the outer scroll view?
I am also concerned with performance. Since you are setting the TableView's frame so it won't have any scroll, will this prevent the native framework to optimize the number of rows in memory and dequeueReusableCellWithIdentifier properly? Or is the tableView aware of what will be visible or not even within nested scroll views?

subdigital commented 3 years ago

originally written by subdigital on 07/16/2013 13:43:13

Yes, I accidentally skipped over that in the recording. I turned it off because I didn't like the way it looked across the top content. And you're definitely right about the tradeoff in performance, if you logged out the cellForRowAtIndexPath: method you'd probably see an entry for every row.
Definitely something to consider before trying this approach, but for really simple cells and a bounded list, this wasn't a problem for me.