Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
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 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/.../UITextFieldDelegate/UITextFieldDelegate.html).

The relevant method is:

Code:
- (BOOL)textFieldShouldReturn:(UITextField *)textField;

List of UI Protocols: https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKit_Framework/index.html
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.