Closed jamgian closed 11 years ago
You are correct about new VC instances being created each time. To avoid this you can use properties in the container class to hang on to existing instances and use those as parameters to the swap method instead of segue.destinationViewController
. Since this seems like desired behavior I updated the project to handle this.
Thanks a million! you are my hero!
Hi Michael
My name's Gian. I've been learning how to develop in Objective-C for a month so I'm not that expert and maybe my issue is really stupid (and sorry also for my english but I'm italian!) I followed your instructions and i did a container view controller that can swipe between other two v.c. Inside one of them i put a textField but here's my issue. When I write something and than I swipe in the other view, the text "disappears" whenever I come back to that view controller. So maybe it doesn't just swipe between the views, but it creates a new instance every time that i push the button. What I have to do to avoid it? I hope I explained myself
thanks
Gian