سؤال

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