iSalesNavigationController.m 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
  45. {
  46. return [[self topViewController] shouldAutorotateToInterfaceOrientation:toInterfaceOrientation];
  47. // return (toInterfaceOrientation == UIInterfaceOrientationPortrait);
  48. }
  49. @end