I have one Base Class I have inherited my Parent Class from this Base Class.
Now I have another ViewController With XIB. All I want is to present This XIB as a View in my Parent Class.
Name of My ViewController With XIB is: SearchResultDisplayVC
This code I am using my Base Class to Show My XIB as a View:
 - (void)showSearchResultsView
 {
SearchResultDisplayVC  *searchView =(SearchResultDisplayVC *)[[[NSBundle mainBundle] loadNibNamed:@"SearchResultDisplayVC" owner:[SearchResultDisplayVC class] options:nil] firstObject];
[self.view addSubview:searchView.view];
}
In my Parent class I am calling it as"
[self showSearchResultsView];
Although I am not getting any error message in compile time but when I run my App it crashes showing the following message:
*** Terminating app due to uncaught exception
'NSUnknownKeyException',
reason: '[<SearchResultDisplayVC 0x1104bb380> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
 
     
     
     
    
