azurechen / ACTabScrollView

A fancy Menu and Pager UI extends UIScrollView with elegant, smooth and synchronized scrolling tabs.
MIT License
115 stars 35 forks source link

Divide array into sections #23

Open zcjhnsn opened 6 years ago

zcjhnsn commented 6 years ago

I love this whole project so much. It's been super helpful. Just a quick question:

In your example, you have the "Today" section. How would I be able to make it so that some of the news articles would be under a section titled "Yesterday"? This section would be under the Today section.

For ease, say that the entertainment section has 3 articles I want to place in the today section, then the next articles in the array would go under the "today" section.

The only way I've been able to do it is having the today and yesterday sections contain each article. So the entertainment one would have the first two articles in the array under the Today section and the same two articles under the Tomorrow section.

I hope this all makes sense, if not just let me know.