[英]iAD - adBannerView rotation
在支持所有设备方向的iPad应用程序中,我向主视图添加了adBannerView。
到现在为止还挺好。 它可以正常工作,并且广告按预期轮播。
如果单击某个特定广告,则该广告会全屏显示,当我关闭它时,我会返回到我的应用。
问题是,如果您在可视化全屏广告的同时旋转设备,则该设备会正确旋转,但是当您关闭设备并返回到应用程序时,视图不会旋转 。
如何解决呢? 请帮助,否则我将销毁我的iPad! ;-)
基本上,您想要
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
再次调用的方法...
为此,当用户关闭iAd时,只需执行以下命令:
UIViewController *correctOrientation = [[UIViewController alloc]init];
[self presentModalViewController:correctOrientation animated:NO];
[self dismissModalViewControllerAnimated:NO];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.