Search code examples
iphoneiosipadios5appearance

appearance proxy reload view


In the iPad you can change the appearance of the app in a view which is modally pushed. But after selecting a theme and dismissing the view the appearance does not change. if I push an other view full-screen, the view is updated.

How can I force to update/refresh/repaint the appearance?

EDIT

I tried playing setNeedsDisplay everywhere, but the app does not respond directly. As the reference said, the view is marked to be redrawn as soon as the loop restarts.

And because the view is already loaded with an other appearance behind the modally pushed appearance changer view, it is not reloaded.


Solution

  • I quick-fixed it.

    I just start with a full-screen modal view and after I changed the theme I dismiss the view, so the views behind it will be updated.

    If some one has a better solution I really like to hear about it.