I have an custom UIVIewController that is the base class for other controllers and has an instance of a custom UIView variable that is accessed by inherited the classes.
The error says that _vwHeader undeclared. So try by modifying the code in:
CustomViewController.m
#import "CustomViewController.h" @implementation CustomViewController - (void)loadView { [super loadView]; if(!_vwHeader) { _vwHeader = [[UIView alloc]init]; } [_vwHeader setHidden:NO]; } @end