¡@

Home 

2014/10/15 ¤U¤È 10:04:31

iphone Programming Glossary: bannerview_

AdMob not showing ads in iOS simulator

http://stackoverflow.com/questions/5967581/admob-not-showing-ads-in-ios-simulator

which is the following I've changed the adUnitID Create a view of the standard size at the bottom of the screen. bannerView_ GADBannerView alloc initWithFrame CGRectMake 0.0 self.view.frame.size.height GAD_SIZE_320x50.height GAD_SIZE_320x50.width.. GAD_SIZE_320x50.width GAD_SIZE_320x50.height Specify the ad's unit identifier. This is your AdMob Publisher ID. bannerView_.adUnitID @ XYZ Let the runtime know which UIViewController to restore after taking the user wherever the ad goes and add.. know which UIViewController to restore after taking the user wherever the ad goes and add it to the view hierarchy. bannerView_.rootViewController self self.view addSubview bannerView_ self.view bringSubviewToFront bannerView_ GADRequest request GADRequest..