加载应用程序后刷新UIAppearance

【加载应用程序后刷新UIAppearance】壮心未与年俱老,死去犹能作鬼雄。这篇文章主要讲述加载应用程序后刷新UIAppearance相关的知识,希望能为你提供帮助。
This snippet shows you how to reload the UIAppearance of an application after changes made on the proxies. This is required because ios nativaly only load appearance proxies on " applicationDidFinishLaunching" .

  1. NSArray *windows = [ UIApplication sharedApplication] .windows;
  2. for ( UIWindow *window in windows) {
  3. for ( UIView *view in window.subviews) {
  4. [ view removeFromSuperview] ;
  5. [ window addSubview:view] ;
  6. }
  7. }


    推荐阅读