に収まらない、なぜ、私のアプリは普遍的であるので、私はのviewDidLoadでこのコードを使用addviewは私が私の画面の下部にaddview表示する幅
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
if (orientation == UIDeviceOrientationPortrait || orientation == UIDeviceOrientationPortraitUpsideDown)
{
adView= [[ADBannerView alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 80.0f, 320.0f, 40)];
}
else
{
NSLog(@"///////////////////////////// I'm here /////////////////////");
adView= [[ADBannerView alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 80.0f, 1024 , 40)];
}
}
else
{
if (orientation == UIDeviceOrientationPortrait || orientation == UIDeviceOrientationPortraitUpsideDown)
{
adView= [[ADBannerView alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 40.0f, 320.0f, 40)];
}
else
{
adView= [[ADBannerView alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 40.0f, 1024 , 40)];
}
}
[adView setAutoresizingMask: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleLeftMargin];
//adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
[self.view addSubview: adView];
[self.view bringSubviewToFront:adView];
問題はビューが決してということですiphoneでの仕事とうまくいくのiPadの幅を埋めない
すべての配置コードあなたはトンを持っているので 敬具
もちろん、ipadの幅は768または1024である必要があります。 – ader
私の質問を更新し、Apurvに応じて私は – AMH