CNavigationController.m 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // CNavigationController.m
  3. // ComPDFKit_Tools
  4. //
  5. // Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. #import "CNavigationController.h"
  13. #import "CPDFColorUtils.h"
  14. @interface CNavigationController ()
  15. @end
  16. @implementation CNavigationController
  17. - (void)viewDidLoad {
  18. [super viewDidLoad];
  19. if (@available(iOS 15.0, *)) {
  20. UINavigationBarAppearance *navgationBarApp = [[UINavigationBarAppearance alloc] init];
  21. navgationBarApp.backgroundColor = [CPDFColorUtils CNavBackgroundColor];
  22. [UINavigationBar appearance].scrollEdgeAppearance = navgationBarApp;
  23. [UINavigationBar appearance].standardAppearance = navgationBarApp;
  24. [UITableView appearance].sectionHeaderTopPadding = 0;
  25. } // Do any additional setup after loading the view.
  26. }
  27. /*
  28. #pragma mark - Navigation
  29. // In a storyboard-based application, you will often want to do a little preparation before navigation
  30. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  31. // Get the new view controller using [segue destinationViewController].
  32. // Pass the selected object to the new view controller.
  33. }
  34. */
  35. @end