Refresh UIAppearance after application loaded

/ Published in: Objective C
Save to your folder(s)

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.