IBOutlet in objective-c

后端 未结 3 1408
忘掉有多难
忘掉有多难 2020-12-22 02:12

what does this line of code do :

IBOutlet UITextField *userName;

3条回答
  •  不知归路
    2020-12-22 02:54

    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.

提交回复
热议问题