VLCNavigationController.m 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*****************************************************************************
  2. * VLCNavigationController.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013-2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCNavigationController.h"
  13. @interface VLCNavigationController ()
  14. {
  15. BOOL _setup;
  16. }
  17. @end
  18. @implementation VLCNavigationController
  19. - (void)viewWillAppear:(BOOL)animated
  20. {
  21. [super viewWillAppear:animated];
  22. if (_setup)
  23. return;
  24. UINavigationBar *navigationBar = self.navigationBar;
  25. navigationBar.barTintColor = [UIColor VLCOrangeTintColor];
  26. navigationBar.tintColor = [UIColor whiteColor];
  27. navigationBar.titleTextAttributes = @{ NSForegroundColorAttributeName : [UIColor whiteColor] };
  28. _setup = YES;
  29. }
  30. @end