You cannot hide it, but you can make its width very small , which will make it invisible to the user. It must be> 0, because 0 = automatic width.
[yourSegmentedControl setWidth:0.1 forSegmentAtIndex:1]
To be safe, also turn it off to reduce the chance of a choice to zero.
[mapTypeSC setEnabled:NO forSegmentAtIndex:1]
Tibidabo
source share