The standard syntax is @property UITextField *txtUserName; without underlining, this method will automatically generate a getter setter method, so it can be accessed with self.txtUserName, and a member variable of _txtUserName will be created,
And @interface KCLoginViewController (){
UITextField *_txtUserName; UITextField *_txtPassword;
}
The getter setter method will not be generated, so you can only access it with _txtUserName _txtPassword
The standard syntax is @property UITextField *txtUserName; without underlining, this method will automatically generate a getter setter method, so it can be accessed with self.txtUserName, and a member variable of _txtUserName will be created,
And @interface KCLoginViewController (){
UITextField *_txtUserName; UITextField *_txtPassword;
}
The getter setter method will not be generated, so you can only access it with _txtUserName _txtPassword