View Full Version : Stop .xib file from reloading

Apr 3, 2009, 03:51 AM
Hi there,

I am developing an application for iphone. I am moving from a.xib to b.xib & fetching a value & return back to a.xib. By the mean time all values entered in the textfields of the a.xib files getting cleared (I am building the whole page on the viewdidload method). I want stop this. Is there any suggestion on that?

Apr 3, 2009, 09:51 AM
Maybe use awakeFromNib instead?

Apr 3, 2009, 10:07 AM
What exactly do you mean by switching from nib to nib?

Do you mean you are going from one view controller to another and then back and your first view controller is redrawing a blank set of views?

I guess it would be useful to see some code of what exactly you are trying to do.

Apr 7, 2009, 03:59 AM
Thanks for the input guys.

i made it the other way, by calling [self.navigationController popViewControllerAnimated:YES]; in the form B's back button & it moves to form A now.