Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable/Disable UISegmentedControl

Anyone know a way to reject input onto a UISegmentedControl object?

During my application loading phase, if the UISegmentedControl is tapped, the app crashes.

I've tried:

[segmentControl setEnabled:NO];

But that doesn't seem to work...

like image 772
Rob Avatar asked Dec 17 '22 03:12

Rob


1 Answers

segmentControl.userInteractionEnabled = NO;
like image 65
fbernardo Avatar answered Jan 02 '23 15:01

fbernardo