ios - Dynamic sections and rows in UITableView -
i have task , list, 2 entities in database.
task-->one one-->list list-->one many-->task.
i have uitableview want show list sections , tasks rows in sections, if thery connected relation in database.
something this:
---------- section1-- row1 row2 ---------- section2-- row 3 row 4 row 5 ---------- section3-- row 6 ---------- section 4-- row 7 row 8
and on.
any suggestion how it? have no idea...
the comment nsfetchedresultscontroller
correct solution.
in fetch request of fetched results controller use entity task
. when creating controller, set sectionnamekeypath
@"list"
, or whatever called to-one relationship in task entity.
Comments
Post a Comment