View Full Version : Get data when u go back
arnieterm
Nov 7, 2008, 07:37 AM
For a tab bar app with nav controllers how can i get any data from a details view controller like input in any text field, date value in a date picker etc when user clicks on/Done Back button on nav bar.
Do I need to implement any kind of delegate or does there exists any other way to do this?
jnic
Nov 7, 2008, 08:21 AM
For a tab bar app with nav controllers how can i get any data from a details view controller like input in any text field, date value in a date picker etc when user clicks on/Done Back button on nav bar.
Do I need to implement any kind of delegate or does there exists any other way to do this?
For a text field, you want UITextFieldDelegate (https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITextFieldDelegate_Protocol/UITextFieldDelegate/UITextFieldDelegate.html).
The relevant method is:
- (BOOL)textFieldShouldReturn:(UITextField *)textField;
List of UI Protocols: https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKit_Framework/index.html
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.