SegmentedButton.SegmentAt(X).Enabled not available

On desktop and Web I can disable an individual MobileSegment within a MobileSegmentedButton, but on iOS I cannot. Is this an iOS limitation i.e. should I put in a Feature Request or not?

mySegmentedButton.SegmentAt(1).Enabled = False 'command not available

Try this(untested)

Declare sub setEnabled_ lib “UIKit” selector “setEnabled:forSegmentAtIndex:” (obj_id as ptr, yesNo as Boolean, index as integer)
SetEnabled_(mySegmentedControl.Handle, false, 1) //disable item 1

This technique works. Thanks @Jason_King

<https://xojo.com/issue/64691>

This technique is no longer working for my iOS app.

I haven’t changed my code at all, I use it as above, but with a Boolean variable to set the status. I can set all the Segments to False and they’re all still non-greyed and click-enabled.

Does anyone have a fix or solution?

So, I needed this function in one of my current project, and, for the record, the provided solution still works.
I’m responding to this old topic because it’s the only one talking about enabling a specific MobileSegment, and wanted to rectify the last post stating it no longer works (at least it does for me), in case anyone else searches for that.

Also worth mentioning iOSDesignExtensions lacks this.