在我支持所有设备方向的iPad应用程序中,我在主视图中添加了一个adBannerView。
到目前一切尚好。它正常工作,广告按预期旋转。
如果我点击一个特定的广告这是可视化的全屏,当我关闭它,我回到我的应用程序。
的问题是,当你看到全屏广告时,如果你旋转设备,它会正确旋转,但是当你关闭它并返回到应用程序时,视图不是旋转的。
如何解决这个问题?请帮帮忙,否则我会毁了我的iPad!
发布于 2012-06-08 18:44:39
基本上,你想要
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 方法将再次调用..。
要做到这一点,当用户关闭iAd时,只需执行:
UIViewController *correctOrientation = [[UIViewController alloc]init];
[self presentModalViewController:correctOrientation animated:NO];
[self dismissModalViewControllerAnimated:NO];https://stackoverflow.com/questions/10954089
复制相似问题