I'm a days-old iphone programmer - I'm writing a simple program based on the utility xcode template. I have a uitextfield that writes its value into a singleton object on edit. I also have implement开发者_Python百科ed key observation on changes to this value. This works fine. When I flip the view to the second "flipside view" and back again the value is reset.
I'm trying to get the textfield to retain its value between flips.
What am I missing?
Re-set your value in viewDidLoad/viewWillAppear. Maybe you are getting memory warning and view controller releases it's view?
精彩评论