Search code examples
iosswiftiad

Get iAd banner's height programmatically in Swift?


I want to know that how can I get an iAd banner's advertisement's height for current device programmatically in Swift? Thanks!


Solution

  • Solved by using:

    CGRectGetHeight(iAdBannerView.frame)