¡@

Home 

2014/10/15 ¤U¤È 10:12:21

iphone Programming Glossary: on_y

Admob banner integration in Cocos2d 2.0 / Admob banner in iphone games

http://stackoverflow.com/questions/14278166/admob-banner-integration-in-cocos2d-2-0-admob-banner-in-iphone-games

this on need basis @interface MyMainMenu CCLayer GADBannerView mBannerView CocosBannerType mBannerType float on_x on_y off_x off_y @implementation MyMainMenu void onEnter super onEnter self createAdmobAds void onExit self dismissAdView super.. frame mBannerView.frame off_x 0.0f on_x 0.0f switch mBannerType case kBanner_Portrait_Top off_y frame.size.height on_y 0.0f break case kBanner_Portrait_Bottom off_y s.height on_y s.height frame.size.height break case kBanner_Landscape_Top.. case kBanner_Portrait_Top off_y frame.size.height on_y 0.0f break case kBanner_Portrait_Bottom off_y s.height on_y s.height frame.size.height break case kBanner_Landscape_Top off_y frame.size.height on_y 0.0f break case kBanner_Landscape_Bottom..