Can't connect IBOutlet in Interface Builder

前端 未结 19 2076
别跟我提以往
别跟我提以往 2020-12-04 20:02

I\'m having a weird experience. I create any type of iPhone application, add a UIViewController with Xib file. I can edit the xib file with controls and see them rendered if

19条回答
  •  盖世英雄少女心
    2020-12-04 20:32

    I wrote out

    @IBOutlet weak var title: UILabel!
    

    in the UIViewController text file then connected from the file to the label in the storyboard, and it worked!

提交回复
热议问题