UIView+GHTheme.m 825 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // UIView+GHTheme.m
  3. // GameHelper
  4. //
  5. // Created by 青秀斌 on 16/12/29.
  6. // Copyright © 2016年 kylincc. All rights reserved.
  7. //
  8. #import "UIView+GHTheme.h"
  9. #import "GHThemeManager.h"
  10. @implementation UIView (GHTheme)
  11. - (void)observeThemeChange {
  12. [[NSNotificationCenter defaultCenter] addObserver:self
  13. selector:@selector(themeChangeAction)
  14. name:GHThemeChangeNotification
  15. object:nil];
  16. }
  17. - (void)unObserveThemeChange {
  18. [[NSNotificationCenter defaultCenter] removeObserver:self
  19. name:GHThemeChangeNotification
  20. object:nil];
  21. }
  22. - (void)themeChangeAction {
  23. }
  24. @end