NSMutableArray* supportedOrientations = [NSMutableArray alloc];
if ([cont supportsOrientation:UIInterfaceOrientationPortrait]) {
[supportedOrientations addObject: [NSNumber numberWithInt:UIDeviceOrientationPortrait]];
}
if ([cont supportsOrientation:UIDeviceOrientationPortraitUpsideDown]) {
[supportedOrientations addObject: [NSNumber numberWithInt:UIDeviceOrientationPortraitUpsideDown]];
}
if ([cont supportsOrientation:UIDeviceOrientationLandscapeLeft]) {
[supportedOrientations addObject: [NSNumber numberWithInt:UIDeviceOrientationLandscapeLeft]];
}
if ([cont supportsOrientation:UIDeviceOrientationLandscapeRight]) {
[supportedOrientations addObject: [NSNumber numberWithInt:UIDeviceOrientationLandscapeRight]];
}
childBrowser.supportedOrientations = supportedOrientations;
Haven't been able to test yet because I incorrectly installed cordova 2.1 or something, but this got rid of the error (and let me see that I messed up elsewhere).
@synthesize scaleEnabled;
so now instead of
@implementation ChildBrowserViewController
@synthesize imageURL, isImage;
@synthesize delegate, orientationDelegate;
@synthesize spinner, webView, addressLabel;
@synthesize closeBtn, refreshBtn, backBtn, fwdBtn, safariBtn;
@implementation ChildBrowserViewController
@synthesize scaleEnabled;
@synthesize imageURL, isImage;
@synthesize delegate, orientationDelegate;
@synthesize spinner, webView, addressLabel;
@synthesize closeBtn, refreshBtn, backBtn, fwdBtn, safariBtn;