Set object property to be the same as File Owner property in Interface Builder
我在
这是我唯一的选择吗?例如。在
中
1 2 3 | - (void)windowDidLoad { // or awakeFromNib self.myViewController.managedObjectContext = self.managedObjectContext; } |
您不能在Interface Builder中进行这种类型的连接。