what does this line of code do :
IBOutlet UITextField *userName;
That is part of the connection of the userName property to your XIB file.
It allows you to access the control programatically and, in this case, change / retrieve its text for instance.