I created a toolbar with segmented controls inside and then made the 320 segmented control wide. Then I set the flexible layout guides on each side to make the segmented control center. It looks great in a portrait, but the segmented control will not stretch to the landscape.
Portrait (includes installation and IB simulator) 
Landscape (also includes installation and IB simulator) 
It seems that the app store has a segmented control that is set to a specific width, and then the view is not allowed to rotate. I understand that you want the segmented control to change the width with the layout, but unfortunately this is not possible with an automatic layout at the moment.
My suggestion would be if you really wanted the segmented control to change the width with rotation, it would be programmatically set the width when the device rotates to landscape.
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { if(UIDeviceOrientationIsLandscape(UIDevice.currentDevice().orientation)) {
One more thing, if you end up using this material to rotate the device, you still need these flexible struts in IB so that your segmented control is focused on the toolbar
source share