폭에 맞지 않는, 내 응용 프로그램이 내가있는 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];
문제는 뷰 결코 아이폰에서 작동하고 잘 작동 아이 패드의 폭을 기입하지
모든 배치 코드는 t을 가지고 있기 때문에 안부
확실히 ipad는 너비가 768 또는 1024 여야합니다. – ader
내 질문을 업데이 트하고 Apurv에 따라 사진 – AMH