diff --git a/JASidePanels/Source/JASidePanelController.m b/JASidePanels/Source/JASidePanelController.m index 811dd5c..557fcd9 100644 --- a/JASidePanels/Source/JASidePanelController.m +++ b/JASidePanels/Source/JASidePanelController.m @@ -123,6 +123,15 @@ - (id)initWithCoder:(NSCoder *)aDecoder { return self; } +//Support subclasses from .xib-files +- (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { + [self _baseInit]; + } + return self; +} + - (id)init { if (self = [super init]) { [self _baseInit];