I have a text view on my app. I also have an About/Help button. When they click the About/Help button, it goes to another story board. When they click the "Back" button, it goes back to the original story board.
The problem I'm having is, how do I make it so when they go back to the original story board, that the text view won't revert back to what it originally had, but keep the input that the user had on it?
Okay, I have this code when the user presses a button called "Convert".
- (IBAction)convertButton:(id)sender {
//Makes the text view into editable NSString
NSString *input = _inputTextField.text;
//Changes words that the user input.
input = [input stringByReplacingOccurrencesOfString@"cool" withString:@"awesome"];
//Some code here changes it to input2
//Sends the edited input to the output text field
_outputTextField.text = input2;
}
That means that if the user put "I'm cool." into the inputTextField, and then press the convert button, I want it to save his input, incase the user clicked the "About/Help" button that takes him to another window, because when he goes back, I want his old input to stay in the input box. But it doesn't do that.