// // ApexMobileNavigationController.m // Apex Mobile // // Created by Ray on 14-3-9. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved. // #import "iSalesNavigationController.h" @interface iSalesNavigationController () @end @implementation iSalesNavigationController - (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]; } -(UIInterfaceOrientationMask)supportedInterfaceOrientations { // return UIInterfaceOrientationMaskLandscape; return [[self topViewController] supportedInterfaceOrientations]; } // //- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation //{ // return [[self topViewController] shouldAutorotateToInterfaceOrientation:toInterfaceOrientation]; // // return (toInterfaceOrientation == UIInterfaceOrientationPortrait); // //} - (void)setNavigationBarHidden:(BOOL)navigationBarHidden { [super setNavigationBarHidden:navigationBarHidden]; } - (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated { [super setNavigationBarHidden:hidden animated:animated]; } @end