# In ios1,how to modify the code so the slider doesn't reset the halfway but start from the same position in each round?

**URL:** <https://forums.kodeco.com/t/in-ios1-how-to-modify-the-code-so-the-slider-doesnt-reset-the-halfway-but-start-from-the-same-position-in-each-round/15331>\
**Category:** Swift\
**Created:** [May 29, 2016, 8:01am UTC](https://forums.kodeco.com/t/in-ios1-how-to-modify-the-code-so-the-slider-doesnt-reset-the-halfway-but-start-from-the-same-position-in-each-round/15331 "2016-05-29T08:01:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixli](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/felixli/32/33055_2.png) [@felixli](https://forums.kodeco.com/u/felixli)\
**Post date:** [May 29, 2016, 8:01am UTC](https://forums.kodeco.com/t/in-ios1-how-to-modify-the-code-so-the-slider-doesnt-reset-the-halfway-but-start-from-the-same-position-in-each-round/15331/1 "2016-05-29T08:01:53Z")

</div>

![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/b/d/bd22c4264941666284abfa8d7e4d696939da5b07.png)

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [December 8, 2018, 1:38am UTC](https://forums.kodeco.com/t/in-ios1-how-to-modify-the-code-so-the-slider-doesnt-reset-the-halfway-but-start-from-the-same-position-in-each-round/15331/2 "2018-12-08T01:38:01Z")

</div>

@felixli,  
It is quite simple, you can set the value of the Slider to whatever the value it had last.

AND you the halfway reset is because of setting the currentValue to 50 and then setting the slider to that value.

I am not sure where this reference is from, but this should be good for you to start.

cheers,
