I have an Objective-C class and here is its init()
:
- (id)init
{
self = [super initWithNibName:@"xxxViewController" bundle:nil];
if (self)
{
}
return self;
}
I have a Swift class that is a subclass of this.
How do I override the init
of the superclass in the Swift class? I would like to move the initWithNibName
into the Swift class.
Here is the init
in the Swift class that I have tried:
init() {
super.init()
}
I get the error:
Must call a designated intializer of the super class