Pergunta

I want to create a statement that says

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

What is NOT SELECTED in C code?

Foi útil?

Solução

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

if (segmentTitle.selectedSegmentIndex == UISegmentedControlNoSegment) {
    segmentTitle.selectedSegmentIndex = 0;
}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top