Change Height of UISegmentedControl

后端 未结 5 1357
小鲜肉
小鲜肉 2021-01-14 09:14

I am trying to change height of UISegmentedControl using this code:

CGRect frame= mySegmentedControl.frame;
[mySegmentedControl setFrame:CGRectM         


        
5条回答
  •  孤街浪徒
    2021-01-14 09:54

    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.

提交回复
热议问题