What does IB mean in IBAction, IBOutlet, etc..?

后端 未结 3 1229
难免孤独
难免孤独 2021-01-31 08:16

I am very new to iPhone development. I often encounter IBAction, IBOutlet and so on when reading Objective-C and Swift code. What does IB

3条回答
  •  离开以前
    2021-01-31 08:52

    IBAction and IBOutlet are interface Builder Constants IBOutlet:A Controller class can refer to the object in the nib file using a special constant called IBOutlet.

    IBActions:Interface objects in the nib file can be set to trigger specific methods in controller class using IBAction as return type of the method.

提交回复
热议问题