Get data when u go back

Discussion in 'iOS Programming' started by arnieterm, Nov 7, 2008.

  1. macrumors regular

    Joined:
    Aug 28, 2008
    #1
    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?
     
  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    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
     

Share This Page