Question

I want to create a statement that says

if (segmentTitle.selectedSegmentIndex == NOT SELECTED) {
    segmentTitle.selectedSegmentIndex == 0;
}

What is NOT SELECTED in C code?

Was it helpful?

Solution

If you read the docs for UISegmentedControl you will find the answer:

if (segmentTitle.selectedSegmentIndex == UISegmentedControlNoSegment) {
    segmentTitle.selectedSegmentIndex = 0;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top