ERROR:use of undeclared identifier 'tableView' error message


#1

I am getting a "use of undeclared identifier ‘tableView’ error message in the BNRAppDelegate.m

I’ve already updated BNRAppDelegate.h to declare that BNRAppDelegate conforms to the protocol. I want to make sure I’ve added the code starting at “#pragma mark - Table View management” in the correct place in BNRAppDelegate.m ’ See the attached image below. Thanks!


#2

It appears that you have the code inside of - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ … }.

I believe it needs to be outside of that.

Mike


#3

re:
“It appears that you have the code inside of - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ … }.
I believe it needs to be outside of that.”

I had the same error, and I had placed this code after the - (BOOL)


#4

Got it. Thanks.