ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
10/08/12 08:26 AM (13 years ago)

Semantic Issue - Build Failed

OK guys....I think I am getting closer and closer to a working iOS app, but now I have this error.... /Users/DigitalDevelopments/Downloads/guidetosafescouting_v15_iOS/BT_Layout/BT_rotatingNavController.m:348:59: Use of undeclared identifier 'ADBannerContentSizeIdentifierPortrait' I got it twice. Here is the code it points to.... //If we have an ad view we may need to modify it's layout... for(UIView* subView in [theViewController.view subviews]){ if(subView.tag == 94){ for(UIView* subView_2 in [subView subviews]){ if(subView_2.tag == 955){ ADBannerView *theAdView = (ADBannerView *)subView_2; if(UIInterfaceOrientationIsLandscape(toInterfaceOrientation)) { [theAdView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifierLandscape]; }else{ [theAdView setCurrentContentSizeIdentifier:ADBannerContentSizeIdentifierPortrait]; } It shows up in the BT-rotatingNavController.m file..... Thanks in advance! Al :-)
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
10/08/12 09:54 AM (13 years ago)
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
10/14/12 03:59 PM (13 years ago)
Thanks @PSMDanny....the "#import <iAd/iAd.h>" part worked!
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
10/14/12 04:07 PM (13 years ago)
Great!! Glad it helped. Best Regards, Danny
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.