How to access IBOutlets declared in superclass?

前端 未结 10 1525
执笔经年
执笔经年 2020-12-30 03:24

I\'m currently refactoring a couple of view controllers that share a few IBOutlets and IBAction methods. I moved the outlet declarations and the

10条回答
  •  误落风尘
    2020-12-30 03:59

    The solution for the problem with the IBOutlet .. is to change the class type to the Base Class in the identity inspector

    enter image description here

    connect using Control + drag and drop and

    enter image description here

    change it back to the child class

    enter image description here

    This works for me

    BTW: i used Xcode 6

提交回复
热议问题