6

Im using iOS6 SDK and currently apple deprecated landscape mode. Is there any work around to use landscape iAds because my game only runs on landscape mode.

Thank you.

Daniel Storm
  • 18,301
  • 9
  • 84
  • 152
Gamer
  • 369
  • 3
  • 11

1 Answers1

-1

Landscape mode is not deprecated only the method

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 

has been deprecated. Now you can use below methods:-

- (BOOL)shouldAutorotate
{
    return YES;
} 
- (NSUInteger)supportedInterfaceOrientations
{
  return  UIInterfaceOrientationMaskAll;
}
TheTiger
  • 13,264
  • 3
  • 57
  • 82
Bajaj
  • 859
  • 7
  • 17
  • I don't think your answer has anything to do with the question. It's about iAd and the deprecated properties. See: http://developer.apple.com/library/ios/#DOCUMENTATION/UserExperience/Reference/ADBannerView_Ref/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/doc/uid/TP40009562-AppendixA – Kai Huppmann Sep 28 '12 at 09:47
  • @Kai- read ur question first line .my ans will based on currently apple deprecated landscape mode not in iAd.. – Bajaj Sep 28 '12 at 10:29
  • I am aware that orientation methods are replaced with new ones. But my question was how to use iAds in landscape mode – Gamer Oct 02 '12 at 09:43