2 things to do:
- Configure the slider so that its min and max values are equal to the min and max zoom scale of your scroll view
- Use
[imageScrollView setZoomScale:sender.value];
to update the zoom when the slider is changed
Also, check the superview that your slider is added to. It shouldn’t be added to the scroll view, it should be added to another view (possibly the scroll views superview, possibly also brought to the front).
0
solved How to zoom image by slide? [closed]