Как разместить баннер Admob внизу на iPhone 4S и iPhone 5?
До iPhone 5 я мог разместить баннер admob внизу экрана (чуть выше панели вкладок). Но из-за размера экрана iPhone 5 все теперь нарушается. Я даже пытался сделать это через Autolayout (это нет работа). Как я могу сделать это для обоих размеров экрана?
Вот'мой код -
-(void) viewDidLoad {
[super viewDidLoad];
adMob = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0,
367.0 -
GAD_SIZE_320x50.height,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
adMob.translatesAutoresizingMaskIntoConstraints=NO;
// Specify the ad's "unit identifier." This is your AdMob Publisher ID.
adMob.adUnitID = @"XXXXXXXX";
// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
adMob.rootViewController = self;
GADRequest *request = [GADRequest request];
request.testing=YES;
[self.view addSubview:adMob];
// Initiate a generic request to load it with an ad.
[adMob loadRequest:[GADRequest request]];
[adMob release];
// Create a view of the standard size at the bottom of the screen.
// Available AdSize constants are explained in GADAdSize.h.
}
Любая помощь будет оценена!