問題描述
在 Xcode 7 中將出口從文件連接到情節提要 (Connect outlet from file to storyboard in Xcode 7)
我遇到了一個小問題,可能與 Xcode 7
有關。在我的故事板中,我有帶有自定義類子視圖的視圖控制器。這個子視圖包含 UILabel
。在以前版本的 Xcode
中,我能夠創建類,比如說從 UIView
繼承的 CustomClass
,手動輸入 IBOutlet
屬性並將其從類文件連接到情節提要中的標籤。現在這似乎是不可能的,我無法從 IBOutlet
行中顯示的那個小圓圈中拖動連接。
你們中有人有同樣的問題嗎?
參考解法
方法 1:
Ok, solved. I'm able to connect outlet from connection inspector in Utilities panel.
(by MichalMoskala、MichalMoskala)