xcode5 add new referencing outlet

前端 未结 4 666
不知归路
不知归路 2020-12-18 06:03

Hi I have Just Update my xcode to xcode5, but I have no idea how to add new referencing outlet using xcode 5 by ctrl-drag and drop the label or buttons just like previous wh

4条回答
  •  无人及你
    2020-12-18 06:56

    I was missing the obvious myself here. To add a new Referencing Outlet (I'm using XCode 9.0) I did the following:

    1. Ensure the storyboard and header file are both open and visible
    2. Right-click on the control and drag the + symbol by New Referencing Outlet to the line in your header file where you want the new variable reference.

提交回复
热议问题