Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How to handle orientation change in adView

In native way, apple suggest something like this

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
    if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation))
        self.bannerView.currentContentSizeIdentifier =
            ADBannerContentSizeIdentifier480x32;
    else
        self.bannerView.currentContentSizeIdentifier =
            ADBannerContentSizeIdentifier320x50;
}

I have checked the document (http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.iOS.AdView-object.html)
but no luck to find some properties like currentContentSizeIdentifier.

P.S. There are properteis SIZE_320x50 and SIZE_480x32 so I believe there are way or titanium planing to do it.

Any suggest is welcome. Thx

— asked August 20th 2010 by Sam Wong
  • adview
  • iad
  • ios4
  • mobile
  • orientation
0 Comments

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.