Endless recursive calls to initWithCoder when instantiating xib in storyboard

后端 未结 2 700
孤城傲影
孤城傲影 2021-01-12 18:48

In order to re-use a certain subview throughout my application (which is storyboard based), I decided to build the subview as a nib, and load it in. To do this, I have done

2条回答
  •  遥遥无期
    2021-01-12 19:18

    I had same problem. My mistake was in empty File's Owner class. In File's Owner custom class must be NOT empty (Widget), and root view must be empty.

    IBActions and IBOutlets were fine.

提交回复
热议问题