It is not entirely clear to me how SDSegmentedControl's width is setup. I dropped an UISegmentedControl to iPhone sized view which is used in an universal app and changed it class to be SDSegmentedControl, then in viewDidLoad I add various segments by '- insertSegmentWithTitle:atIndex:animated:'. At the end segmented control's view is way larger than expected.
How to make it respect sizing and auto–resizing specified in xib, so that users would scroll horizontally to tap on additional segments please?
It is not entirely clear to me how SDSegmentedControl's width is setup. I dropped an UISegmentedControl to iPhone sized view which is used in an universal app and changed it class to be SDSegmentedControl, then in viewDidLoad I add various segments by '- insertSegmentWithTitle:atIndex:animated:'. At the end segmented control's view is way larger than expected.
How to make it respect sizing and auto–resizing specified in xib, so that users would scroll horizontally to tap on additional segments please?
Thanks.