Proxy reboot appearance

On the iPad, you can change the appearance of the application in a view that will be clicked modally. But after choosing a topic and rejecting the presentation, the appearance does not change. if I click another view in full screen, the view is updated.

How can I get the update / refresh / repaint appearance?

EDIT

I tried playing setNeedsDisplay everywhere, but the application is not responding directly. As indicated in the link, the view is marked as redrawn as soon as the loop restarts.

And since the view has already been loaded with another appearance that is behind the view change in the view of the changed view, it does not restart.

+4
source share
3 answers

I quickly fixed it.

I am just starting with a full-screen modal view, and after I changed the subject, I dismissed the view so that the images that viewed it would be updated.

If anyone has a better solution, I really like to hear about it.

+2
source

[view setNeedsDisplay] usually used to indicate that it needs to be redrawn.

[view setNeedsLayout] the same for -layoutSubviews

Cm:

0
source

I had more or less the same problem that changed the look of UISliders. Using [self.view setNeedsDisplay] had no effect.

With the line of code below, the appearance of the sliders did not change as expected, but only after another view was loaded and rejected.

 [[UISlider appearance] setMinimumTrackTintColor:[UIColor greenColor]]; 

Creating IBOutlets for each slider and setting the tintcolor as shown below had the desired effect and the changes occurred immediately.

 [volumeSlider setMinimumTrackTintColor:[UIColor greenColor]]; [brightnessSlider setMinimumTrackTintColor:[UIColor greenColor]]; 
0
source

Source: https://habr.com/ru/post/1379613/


All Articles