You need model objects for your views. They can be as simple as dictionaries, or be used as a custom class for each view.
Each view controller must update its associated model with the changes made through its interface before the view goes beyond the screen. When it reappears, VC will update the display with information from the model.
Cocoa Model-View-Controller (. : Cocoa ); , , .
. , . xField UITextField s.
- (void) viewWillDisappear {
[model setNameOfHorse:[[self horseNameField] text]];
NSUInteger newBetValue;
newBetValue = [[dollarValueFormatter
numberFromString:[[self betField] text]]
unsignedIntegerValue];
[model setBet:newBetValue];
[model setNote:[[self noteField] text];
}