Reputation: 83
So I'm trying making a multi-level UITableView
by using UITableView inside UITableViewCell
. Let me explain first:
UITableView
cellForRow
that include UITableView inside cell.numberOfSection
I return [blueData count];
numberOfRowsInSection
, of course I get from GreenModel *greenData = [blueData.greenData count];
UITableView
inside cell, so I define blueDatarArray
and pass it into cell with properties, like this: cell.greenDataArray = [blueDataArray.greenData mutableCopy];
UITableViewCell
I have UITableView
, which is there will be UITableView Delegate
and UITableView DataSource
UITableViewCell
's delegate and data source is, numberOfSections
in green tableview is refer from number 7 as [greenDataArray count];
so it will be used for header, and also I give button too into it, used to expand and collapse later.[greenData.child count]
How to show greenData's child?
Upvotes: 1
Views: 25