U
U
uzolenta2019-10-17 18:34:41
Swift
uzolenta, 2019-10-17 18:34:41

How to deselect segmentedControl?

How can I access the SELECTED segmentedControl property from code that deselects a segment?
It is necessary to make sure that none of the segments is selected.
Through the strobord in the properties, you can remove the SELECTED value from all segments, how to do this from the code?
To
5da895fb41611703278934.png
make something like this programmatically
5da896048b3e1301876297.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2019-10-17
@uzolenta

let sc = UISegmentedControl()
sc.selectedSegmentIndex = UISegmentedControl.noSegment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question