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

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -