ios - How to use segmented control as an add minus feature -


i trying create app want user able increase , decrease number using segmented controller. have 2 problems.

  1. one side selected, how can make selected when user touching it?

the plus side selected

  1. how register if same side tapped? have seen many examples shows how register tap on other segment.

you using wrong control this. there uistepper want.

https://developer.apple.com/documentation/uikit/uistepper?changes=latest_minor


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -