I'm trying to implement a tableview that contains categories and subcategories. When loading the tableview it should show categories. When the user click on each category cell it should expand and show subcategories. When the user again click on the particular cell it should hide the subcategory list. The subcategory list count should be different for different category cells. And the subcategory list should be User Interaction Enabled.
I've read the apple documentation but it didn't helped much. Any help will be appreciated. Thanks in advance