I'm trying to get the rendered width of an ADBannerView but it always seems to be the same as my UIScreen's mainScreen's width:
adBannerView = [[ADBannerView alloc] init];
[self.navController.view addSubview:adBannerView];
NSLog(@"Banner's width: %f.", adBannerView.frame.size.width);
NSLog(@"Screen's width: %f.", [UIScreen mainScreen].bounds.size.width);
The two logs above show the same value. I want to eventually center my banner horizontally using the code below, but the width I get back from the banner's frame needs to be the rendered width:
adBannerView.frame = CGRectOffset(adBannerView.frame, ([UIScreen mainScreen].bounds.size.width - adBannerView.frame.size.width)/2.0f, 0);
So how do I get the rendered width of the ADBannerView?