Posted By

Nibli on 07/16/14


refresh update theme reload skin ios uiappearance

Versions (?)

Refresh UIAppearance after application loaded

 / Published in: Objective C

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. }

Report this snippet  

You need to login to post a comment.