I am trying to create a menu where top horizontal scrolling view contains the menu categories. When I tap on one of the menu categories, ads related to the category appears.
When First is selected
--**First**---|--Second--|---Third--|--Fourth--| (scrolling categories) ------------------------------------------------------------------ \\\FirstA\\\ \\\FirstB\\\ \\\FirstC\\\ \\\FirstD\\\ \\\FirstA\\\ \\\FirstB\\\ \\\FirstC\\\ \\\FirstD\\\ ------------------------------------------------------------------
When Second is selected
--First---|--**Second**--|---Third--|--Fourth--| (scrolling categories) ------------------------------------------------------------------ \\\SecondA\\\ \\\SecondB\\\ \\\SecondC\\\ \\\SecondD\\\ \\\SecondA\\\ \\\SecondB\\\ \\\SecondC\\\ \\\SecondD\\\ ------------------------------------------------------------------
When I tap on First Category, data related to first comes as a collectionView. Similarly, when I tap on second Category, data related to second comes in the UICollectionView.
Now I am thinking of doing it in a UITableViewCell with two UICollectionViews. First UICollectionView will contain categories and second UICollectionView will contain data related to categories.
But I have never used two UICollectionViews in a single UITableViewCell. So I am asking is it the correct approach for this type of requirement or should I do it in some other manner.