Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 36

nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
02/28/13 08:31 PM (12 years ago)

Centering iAds in Landscape

Has anyone dealt with centering or resizing iAds when in landscape. This is using the buzztouch implementation of iAds. http://dl.dropbox.com/u/2452503/adbanner.jpg http://dl.dropbox.com/u/2452503/iad_iphone_landscape.jpg I found some documentation here: https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/iAd_Guide/WorkingwithBannerViews/WorkingwithBannerViews.html#//apple_ref/doc/uid/TP40009881-CH4-SW12 I am just curious if anyone has tackled this already.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
03/01/13 01:14 PM (12 years ago)
Looks like buzztouch does have the rotation methods in them. They are just deprecated in iOS 6, which is my deployment target. http://dl.dropbox.com/u/2452503/buzztouch_screen_shots/deprecated_iad_rotation_method.jpg Deprecation: http://stackoverflow.com/questions/12697330/ios-6-and-iads-giving-too-many-warnings And the solution here. http://www.touch-code-magazine.com/iad-code-is-broken-in-ios6/ Just add #import <iAd/iAd.h> to BT_viewController.com http://dl.dropbox.com/u/2452503/buzztouch_screen_shots/fix_for_iads.jpg
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/01/13 11:03 PM (12 years ago)
Thanks for posting your findings. Cool!
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
03/02/13 10:40 AM (12 years ago)
Nope didn't work. The banner size still doesn't update on rotation.
 

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.