You need to declare a variable or a property as an IBOutlet to relate it to the objects that you define in your XIB. ....
Think of the view defined in the XIB as a separate routines that are hidden to your code. The objects - UItextfields, UIImageview etc. that are defined in the XIB are created outside your code (.m ) file IBOutlet allows you to refer to them in your code.