I'm trying to implement the Objective-C equiv. below when calling a view controller with a nib.
Objective C:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
self.modalPresentationStyle = UIModalPresentationCustom;
self.transitioningDelegate = self;
}
return self;
}
Here is where i am in swift so far:
override init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
self.modalPresentationStyle = UIModalPresentationStyle.Custom
self.transitioningDelegate = self
}
However i keep getting this error:
Class "ViewController" does not implement its superclass's required members
I thought the init method above was it required members?
Edit - Goes into more detail below: Class does not implement its superclass's required members