I have an array of 12 articles (0 through 11). These 12 articles are divided into sections based on 3 topics, with each topic name becoming the section header title. My problem is that the index path counter resets to 0 at the start of each section, so I get this:
***Topic 0
article 0
article 1
article 2
***Topic 1
article 0
article 1
article 2
***Topic 2
article 0
article 1
article 2
article 3
article 4
article 5
instead of what I want, which is this:
***Topic 0
article 0
article 1
article 2
***Topic 1
article 3
article 4
article 5
***Topic 2
article 6
article 7
article 8
article 9
article 10
article 11
What is incorrect about my implementation?