Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios uisegmentedcontrol with different sizes

I wish use a uisegmentedcontrol in my app with 3 segments but not with the same size, the first and the third smaller than the second... is this possible? how can I do this? thanks

like image 595
ghiboz Avatar asked Dec 29 '22 02:12

ghiboz


1 Answers

This sure works:

[self.mySegmentedControl setWidth:30.f forSegmentAtIndex:0];
like image 143
Borut Tomazin Avatar answered Feb 11 '23 06:02

Borut Tomazin