Chen Log

陳洛格

GADBannerView旋轉問題

leave a comment »

   利用 setAutoresizingMask:UIViewAutoresizingFlexibleTopMargin

就可以自動對其 Admob廣告。


    [bannerViewTop loadRequest:[GADRequestrequest]];

    [bannerViewTop setAutoresizingMask:UIViewAutoresizingFlexibleWidth];

    [bannerViewBottom loadRequest:[GADRequestrequest]];

    [bannerViewBottom setAutoresizingMask:UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleWidth];

Advertisements

Written by chenagw

2013/05/17 at 01:46

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: