I'm Beginner in iOS development. In my FirstViewController
I have two textFields and I use the UITextFieldDelegate
to make these two equal the same content. In my SecondViewController
I have another textField and I need to make it have the same content with the textFields from the FirstViewController
.
FirstViewController.m
- (void)viewDidLoad {
[super viewDidLoad];
_FirstTextField.delegate = self;
}
- (void)textFieldDidEndEditing:(UITextField *)textField{
SecondTextField.text = textField.text;