I've noticed that as I navigate around view controllers, that the controller will occasionally reload. This reload causes crashing and other weird issues cause it recreates all the buttons, labels, etc, and reset values back to new values. Typically I use the viewWillLoad function to create all the buttons, labels, etc, and initialize class variables.
What is the proper way to load views (buttons, labels, etc) and initialize class variables into a controller just once, so there is no worry that these will be over written due to a reload later on?
Thank you for any help.
What is the proper way to load views (buttons, labels, etc) and initialize class variables into a controller just once, so there is no worry that these will be over written due to a reload later on?
Thank you for any help.