Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. var bannerView = GADBannerView(frame:CGRectMake(0, 20, 320, 50))
  2.  
  3. let bannerView = GADBannerView(adSize: kGADAdSizeSmartBannerPortrait)
  4.  
  5. let bannerView = GADBannerView(adSize: kGADAdSizeSmartBannerPortrait)
  6. bannerView.frame = CGRect(x: 0.0,
  7. y: UIApplication.sharedApplication().statusBarFrame.size.height,
  8. width: bannerView.frame.width,
  9. height: bannerView.frame.height)
  10.  
  11. let bannerView = GADBannerView(frame:CGRectMake(0, UIApplication.sharedApplication().statusBarFrame.size.height, CGSizeFromGADAdSize(kGADAdSizeSmartBannerPortrait).width, CGSizeFromGADAdSize(kGADAdSizeSmartBannerPortrait).height))
  12.  
  13. bannerView.frame = CGRectMake(0, 20, bannerView.frame.width, bannerView.frame.height)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement