//
//  ApexMobileNavigationController.m
//  Apex Mobile
//
//  Created by Ray on 14-3-9.
//  Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
//

#import "ApexMobileNavigationController.h"

@interface ApexMobileNavigationController ()

@end

@implementation ApexMobileNavigationController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(BOOL)shouldAutorotate
{
    return [[self topViewController] shouldAutorotate];
    //    return TRUE;
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return [[self topViewController] preferredInterfaceOrientationForPresentation];
}
-(NSUInteger)supportedInterfaceOrientations
{
    //    return UIInterfaceOrientationMaskLandscape;
    return [[self topViewController] supportedInterfaceOrientations];
}
@end
