Swift - Detect when certain table section comes into view

73 views Asked by At

I have a table with 7 sections - only the first 2 sections are visible when it loads.

To simplify things - how would I print "Now at section 5" when the user scrolls and gets to that section?

I have tried all over Google but not getting the results I want. I assume the code should go in ViewDidAppear?

1

There are 1 answers

0
Yiags1978 On

I solved it using the code from this post in the end:

Detect UITableViewCells that appear on the screen

Thanks for your help.