iSalesNavigationController.m 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // ApexMobileNavigationController.m
  3. // Apex Mobile
  4. //
  5. // Created by Ray on 14-3-9.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import "iSalesNavigationController.h"
  9. @interface iSalesNavigationController ()
  10. @end
  11. @implementation iSalesNavigationController
  12. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  13. {
  14. self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  15. if (self) {
  16. // Custom initialization
  17. }
  18. return self;
  19. }
  20. - (void)viewDidLoad
  21. {
  22. [super viewDidLoad];
  23. // Do any additional setup after loading the view.
  24. }
  25. - (void)didReceiveMemoryWarning
  26. {
  27. [super didReceiveMemoryWarning];
  28. // Dispose of any resources that can be recreated.
  29. }
  30. -(BOOL)shouldAutorotate
  31. {
  32. return [[self topViewController] shouldAutorotate];
  33. // return TRUE;
  34. }
  35. - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
  36. {
  37. return [[self topViewController] preferredInterfaceOrientationForPresentation];
  38. }
  39. -(UIInterfaceOrientationMask)supportedInterfaceOrientations
  40. {
  41. // return UIInterfaceOrientationMaskLandscape;
  42. return [[self topViewController] supportedInterfaceOrientations];
  43. }
  44. //
  45. //- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
  46. //{
  47. // return [[self topViewController] shouldAutorotateToInterfaceOrientation:toInterfaceOrientation];
  48. // // return (toInterfaceOrientation == UIInterfaceOrientationPortrait);
  49. //
  50. //}
  51. - (void)setNavigationBarHidden:(BOOL)navigationBarHidden {
  52. [super setNavigationBarHidden:navigationBarHidden];
  53. }
  54. - (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated {
  55. [super setNavigationBarHidden:hidden animated:animated];
  56. }
  57. @end