Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling User Interaction with a segmented control?

I want to enable and disable user interaction with a UISegmented Control. I noticed that its superclass UIControl has a property called "enabled" is this what I need to set in order to disable/enable my control?

like image 805
Christian Gossain Avatar asked Jul 21 '26 22:07

Christian Gossain


2 Answers

Yes, the enabled property is what you want. You can also use userInteractionEnabled as well, but I think that enabled will suffice.

like image 114
Jacob Relkin Avatar answered Jul 23 '26 13:07

Jacob Relkin


Yes, for example. You can also use [segmentedControl setUserInteractionEnabled:NO]

like image 32
Björn Marschollek Avatar answered Jul 23 '26 14:07

Björn Marschollek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!