2014-12-26 5 views
1

기기 방향이 세로로되어 있고 거꾸로 된 범용 장치 앱이 있습니다. iPad Storyboard의 경우 오리엔테이션을 세로로 클릭했습니다. iPad 시뮬레이터에서 iAd를 클릭하면 앱이 가로 모드로 전환됩니다. iAd를 닫으면 앱이 자동으로 세로 모드로 돌아갑니다. 이 사이트에서 몇 가지 가능한 솔루션을 살펴본 결과 나에게 도움이되지 못했습니다. 이 문제를 해결하는 방법? NO 및 supportedOrientations에iPad 세로 모드 앱이 가로 모드에서 iAd를로드합니다.

#pragma mark iAd Delegate Methods 


-(void)bannerViewDidLoadAd:(ADBannerView *)banner{ 

[UIView beginAnimations:nil context:nil]; 

[UIView setAnimationDuration:1]; 

[banner setAlpha:1]; 

[UIView commitAnimations]; 

    } 

답변

0

설정 didautorotate은 IAD보기

+0

을 제시의 ViewController에 maskPotrait하는 말은 다음과 같은 ... - (NSUInteger) supportedInterfaceOrientations { 복귀? (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown) ; } 이것은 작동하지 않습니다. 어디 didautorotate 설정합니까? –