objective c - iOS ViewControllers Flow -


now, have table view called products add button on navigation bar. when click on add button, new view controller pushed show called additem. here thing, can open new view controllers additem , reopen products a?

may description little bit confused. productstableviewcontroller --(push)--> additemviewcontroller --(modal/push)--> aviewcontroller --(modal)--> productstableviewcontroller(should exact same first one)

and there may controllers between additemviewcontroller , aviewcontroller.

i have 2 solution: 1. when open productstableviewcontroller a, same instance before 2. create new instance of productstableviewcontroller , data singleton class.

my concern is there memory leak or protential risk?

your best bet use delegates. not sure why want this, if have vcs in stack, , "productstableviewcontroller" root, have move top of stack.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -