I want to use uisegmentedcontrol in my application with 3 segments, but not the same size, the first and third are smaller than the second ... Is this possible? How can i do this? thank
Try:
[yourSegmentedController widthForSegmentAtIndex:indexOfSegmentYouWantToChange];
Hope this helps.
EDIT:
Could be better:
[yourSegmentedController sizeToFit];
It works:
[self.mySegmentedControl setWidth:30.f forSegmentAtIndex:0];
Try this code that helped me:
segmentedControl.apportionsSegmentWidthsByContent = true
Source: https://habr.com/ru/post/1787224/More articles:Может ли кто-нибудь объяснить Maven 2 (или 3) разрешение зависимости для меня? - eclipsedjango-uni-form helpers and CSRF tags over POST - pythonWhy is this filter here? Should it be in the controller? - phpAutoComplete from 10,000 items in .NET. - .netQuotation marks not shown on display - androidMySQL performance: raw query and stored procedure - mysqlHow to select an array of arrays - jsonHow can I count the number of seconds a window has opened? - javascriptOpenMP streams "disobey" omp barrier - openmpОптимизированный сериализатор/десериализатор JSON в качестве метода расширения? - jsonAll Articles