Rob
Rob

Reputation: 629

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...

Upvotes: 4

Views: 1953

Answers (1)

fbernardo
fbernardo

Reputation: 10104

segmentControl.userInteractionEnabled = NO;

Upvotes: 12

Related Questions