How to create category and subcategory selection in UITableView in iOS Objective-C

I want to create a table view with a choice of category and subcategory in a UITableView using Objective-C for iOS, but I do not know what to look for and where to start. The content of the category and subcategory is dynamic, it can be one or several, then this will be decided by the result of the web service. and the whole category should collapse at the tap. It should look like this. enter image description here

Any suggestion and help would be appreciated.

Edit # 1

I tried something but didn't work fine, here is the code for what I still tried. Interest (category and subcategory)

0
source share
2 answers

, CategoryViewController parentCategory.

. , , , segue CategoryViewController parentCategory. .

+2

All Articles