I added a UITableView to a storyboard file in Xcode and the corresponding .m UIViewController (set in the attribute inspector panel as the class type). I have an instance variable myTableView in the UIViewController, which I wanted to assign to the storyboard's UITableView to in order to call the method reloadData in code.
However when I try printing out the variable info within the init or viewDidLoad method with NSLog of the UIViewController, the variable is null.
Example code from the UIViewController: @property (nonatomic, strong) IBOutlet UITableView *myTableView;
I am initializing the corresponding UIViewController as follows:
self = [super initWithNibName:@"CorrespondingNibViewControllerName" bundle:nil];
I had hoped the myTableView instance variable was already initialised to the UITableView via the storyboard but this doesn't seem to be happening...