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,
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:
UISupportedInterfaceOrientations
in the Info.plist
fileshouldAutorotateToInterfaceOrientation:
method (to return the same value you defined in the plist, of course)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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With