I am creating a light application in which I display an image of light. In the light, I change the brightness of the light. If I set the minimum and maximum value of the slider as
slider.minimumValue = -100; slider.maximumValue = 100;
then the slider shows the marker at the 0th position, which is displayed as in the center. But now the initial and maximum value of the slider has been changed as
slider.minimumValue = 0; slider.maximumValue = 100;
I want my slider marker to be initially at the 100th position of the slider, that is, in the upper position of the slider.
Please help me solve this problem.
source share