I've start learning iOS development (with Objective-C) and I'm having the following problem.
What I did so far:
I want to divide the registration process into a number of view controllers. For example:
- View controller 1 has fields for
fnameandlname. - View controller 2 has a field for
email. - View controller 3 has a field for
passwordand a "save" button.
Now, I created a new UIViewController class file named RegistrationViewController and assigned that class to all view controllers above, so that I can write all registration-related code in a one file.
I've used a push segue to get to the next view controller from the current view controller.
ISSUE
When I click the "save" button on the last view controller, I'm not able to get the values for fname, lname, and email.
Why is that so? I mean, I'm in the same file. Shouldn't the value be stored for those properties?