In my AppController I have an if( _adView ) call. if( _adView ) is declared in MoPubManager.h. So, I added in #import "MoPubManager.h" in the top on my AppController. But, I’m getting an error that highlights the if( _adView ) call, and it states “Use of undeclared identifier.” I though that importing the header would fix this. This is probably a really novice question, I’m still very new to Objective-C.
In my AppController I have an if( _adView ) call. if( _adView ) is
Share
if
_adViewis a property of"MoPubManager.h", then you can access thein any other controller by importing
"MoPubManager.h"in that controller and create an object of that"MoPubManager.h"like
MoPubManager *obj = [MoPubManager alloc]init];then you can access
_adViewby usingobj._adviewNote:You can set the
_adViewwith propertiesnonatomicorassign.If it is set toassignproperty you can change the value of_adViewfrom any other controller