I've created a simple tip calculator for practice and have implemented UISliders
for the "tip percentage" and "Split" amounts.
The Split amount divides the total bill amount by the value of the Split UISlider
obviously, but the problem I'm having is that it is getting continuous updates of the slider... I've unchecked "Continuous updates" from Attributes inspector and have even added the uislider.continuousupdates = false
to the code but no luck.
How do I get the UISlider
to snap to the nearest whole value?
Any help here is appreciated.