Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVSegmentedControl set selected index to none #73

Open
oldelidog opened this issue Apr 5, 2014 · 1 comment
Open

SVSegmentedControl set selected index to none #73

oldelidog opened this issue Apr 5, 2014 · 1 comment

Comments

@oldelidog
Copy link

Dear Sir,

I am considering using your (excellent) SVSegmentedControl in one of my iPhone apps, along with the appropriate attribution (of course). I am having difficulty, however, setting all segments to the OFF state, something like this:

[mySVSegmentedControl setSelectedSegmentIndex: UISegmentedControlNoSegment]

or even:

[mySVSegmentedControl setSelectedSegmentIndex: -1]

Your code does not seem to allow this (exception error, plus segment index is NSUInteger (unsigned integer)). Is it possible to get around this?

Please advise.

Best regards,
R. Preston

@funky-monkey
Copy link

+1 Would also like to see this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants