I am trying to change height of UISegmentedControl
using this code:
CGRect frame= mySegmentedControl.frame;
[mySegmentedControl setFrame:CGRectM
Fortunately you can change the height from the xib as well.
You can do so through the xib
as well. Just add a segment control into the xib
. Then open the xib
in TextEdit. There you will find the code :
Here you change the height from 44 to any required height. You can change the height of any UIConponent
like this. Even for the UIPickerView
.