Xcode set default button on enter when making a form

后端 未结 2 1739
醉酒成梦
醉酒成梦 2021-02-15 10:50

I\'m making a form in Xcode using objective-c and cocoa. In the interface builder I have 2 textfields and 2 buttons. When I build the project and run it, neither of the two butt

2条回答
  •  自闭症患者
    2021-02-15 11:27

    You set the Key Equivalent value for your button in IB. Just click on that field in the attributes inspector and press the enter key.

提交回复
热议问题