ios - Have unknown length of navigation controllers in swift -


we making application use api returns array of tree structured json objects. objects have childs of same type, have childs of them self. wanna show these within tableview inside navigationcontroller.

so question how can make use of navigationcontroller recursively? don't know how many children's children they'll have.

example json format pastebin

update

trying explain better, i've created picture enter image description here

my question how can dynamically add more uitableviewcontrollers? instead of creating hundreds of view controllers (picture shows 3)

you gave answer: recurse. delete table view controllers except first one. point push segue first table view controller at itself. pushing create instance of same kind of table view controller, want.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -