I use the tab bar controller in my project, where FirstViewController looks like a Mapbox map, and SecondViewController has buttons that, when clicked, add a tile layer to the map view. Here is what I have tried. It creates an error *** Using undeclared identifier "_mapView" in SecondViewController.m.
//FirstViewController.h #import <UIKit/UIKit.h>
The card calls are correct because I tested them in a project that uses only one view controller. Now, when I try to use it on the input panel controller, I get this error.
My question
1. How can I get mapView in FirstViewController to answer calls in SecondViewController? 2. Could this be done? I imported the class files, thinking that this would open the connection between them, but I was stuck with this error.
source share