I have a text field in my app, and a button to open the image picker. If I enter some text in the text field, and then go take a picture, then the text in the text field disappears after I return from the camera. What’s the proper way of saving/restoring the UI state in such cases in iOS?
Share
Hard to say without seeing code, but when the UIImagePickerController is dismissed the parent controller will call ViewWill/DidAppear. If you change the text of the UITextView in ViewWill/DidAppear then you will lose any input text.