¡@

Home 

2014/10/15 ¤U¤È 10:11:20

iphone Programming Glossary: mbannerview.frame

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

load it with an ad. mBannerView loadRequest GADRequest request CGSize s CCDirector sharedDirector winSize CGRect 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 default break frame.origin.y off_y frame.origin.x off_x mBannerView.frame frame UIView beginAnimations nil context nil UIView setAnimationDuration 0.5 UIView setAnimationCurve UIViewAnimationCurveEaseOut.. nil context nil UIView setAnimationDuration 0.5 UIView setAnimationCurve UIViewAnimationCurveEaseOut frame mBannerView.frame frame.origin.x on_x frame.origin.y on_y mBannerView.frame frame UIView commitAnimations void showBannerView if mBannerView..