I am developing an app in landscape mode. For the same, I had placed the iAd Banner in landscape mode. And it is working fine too. But I got the issue when I tried to see its detail page it is opening in portrait mode. I search on Google but didn't get any solution to view the iAd detail page in landscape mode. If someone has any idea please help me out.

Thanks in advance.

有帮助吗?

解决方案

From Apple Docs,

Any user interface screen that includes a banner view must be managed by a view controller (a class that subclasses UIViewController).

This allows a triggered action to cover your user interface with an additional advertising screen. Whenever a banner view is visible, it must be part of a view hierarchy that is attached to the view property of a view controller.

Your second view controller should be the child of the Main View controller.

For More details Please Refer HERE

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top