I have 2 view controller: AccountViewController and ChangeEmailViewController. The account controller contains the email of the user. The user can change his email by pressing the button titled "change" and will take him to a ChangeEmailViewController. In ChangeEmailViewController, he can write the new email and click on the button titled "submit" to change the email and will show the new email in AccountViewController.(check image to see what I've done in storyboard)
My Questions are: 1- How I can connect both view controllers together? 2- How can I show the email of the user in the old email section in ChangeViewController? 3- How can I change the email of user in AccountViewController with the new email that the user will submit when he/she writes it in the textfield of ChangeEmailController and will be the new email in AccountViewController