views:

481

answers:

3

During inAppPurchase, the storeKit will ask the username and password

even though i set...

[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight];

It ask Username and password in Portrait Mode... In general How to solve this kind of issue.

UPDATED : But the InAppPurchase message on successful purchase is coming in landscape mode.

Thanks in advance,

A: 

Have you tried setting your entire application in landscape from the Info.plist?

JoePasq
Yes i setted to UIInterfaceOrientationLandscapeRight.
Chandan Shetty SP
+1  A: 

As of 3.2 you cannot change the orientation of a running application from code.

But you can start an application with a fixed orientation, although doing so this is not straightforward.

Try with this recipe:

  1. set your orientation to UISupportedInterfaceOrientations in the Info.plist file
  2. in your window define a 480x320 "base view" every other view will be added to
  3. in all view controllers set up the shouldAutorotateToInterfaceOrientation: method (to return the same value you defined in the plist, of course)
  4. in all view controllers set a background view with

    self.view.frame = CGRectMake(0, 0, 480, 320)

    in the viewDidLoad method that should do the trick.

References:

IlDan
A: 

Have you been able to solve this issue- I am experiencing the exact same problem. Any help would be appreciated.

Bruce
Still the bug exists...
Chandan Shetty SP