How do I add an action or outlet to a class in Xcode 4.3.1?

后端 未结 2 1544
一个人的身影
一个人的身影 2020-12-20 02:17

I\'m following a slightly outdated the guide from cocoalab.com (Become An Xcoder) to learn the basics of cocoa, but I\'m stuck on one of the instructions.

On page 45

2条回答
  •  旧巷少年郎
    2020-12-20 03:12

    Open the Assistant Editor (red rectangle in the screenshot). Then, from Interface Builder, press the ctrl key and drag the mouse from the button (or an other control in you view) to the .h file.

    enter image description here

    You will be prompted to choose the type of the connection to create as in the screenshot below:

    enter image description here

提交回复
热议问题