Closed hemaks777 closed 5 years ago
@hemaks777 You can disable segmented control interaction and disable scroll view scrollEnabled.
pageSegmentedControl.isEnabled = false
pageScrollView.isScrollEnabled = false
Hi,
How to disable the click action of segmented control? I have removed the target of segmented control, but still the click is working. Could you please tell me how to disable/enable particular segments based on certain criteria?
@hemaks777 If you use default segmented control, you can do the following:
(pageController. pageSegmentedControl as! UISegmentedControl).setEnabled(: false, forSegmentAt: 0)
Hi , I want to disable the other segments click on first screen and enable it only after the button click on first screen. Could you please tell me how can I do this?