문제

I want to create a statement that says

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

What is NOT SELECTED in C code?

도움이 되었습니까?

해결책

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

if (segmentTitle.selectedSegmentIndex == UISegmentedControlNoSegment) {
    segmentTitle.selectedSegmentIndex = 0;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top