Why can't I call the default super.init() on UIViewController in Swift?

后端 未结 4 1010
执笔经年
执笔经年 2020-12-03 00:26

I am not using a UIViewController from a storyboard and I want to have a custom init function where I pass in an NSManagedObjectID of

4条回答
  •  一生所求
    2020-12-03 00:49

    To improve the occulus's answer:

    init() {
         super.init(nibName: nil, bundle: nil)
    }
    

提交回复
热议问题