Search code examples
iosuisegmentedcontrol

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?


Solution

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