-
Notifications
You must be signed in to change notification settings - Fork 61
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
possible to disable one of the segment? #34
Comments
What do you mean? I would love to implement what you needed. |
@xaviermerino sorry that I missed your reply. I was thinking if is possible to provide n no of segments but disable user to go to that index. for example, I have two segments, BUY & SELL. if I cannot BUY, the BUY segment should be disabled. Similar to what the default does.
|
Although it is not possible to disable a segment through the currently exposed functions, you could disable a segment when the segments are drawn. And enable it by triggering an update. To do this you must make some changes in the source code but it would be a great addition to the project. It shouldn't be too hard/time-consuming to implement. I would place it in the |
Hi as above!
possible to disable part of the segment?
like this ?
self.segmentedControl.setEnabled(false, forSegmentAt: 0);
The text was updated successfully, but these errors were encountered: