UISegmentedControl - altering height in Interface Builder

后端 未结 7 662
萌比男神i
萌比男神i 2021-02-02 11:54

I\'m creating a number of static custom UITableViewCells and have dragged a UISegmentedControl onto one of the custom cells.

Whilst the segmen

7条回答
  •  广开言路
    2021-02-02 12:35

    You can indirectly change it when you pin the "Height" in Interface Builder (select the segment control then via the menu select Editor -> Pin-> Height).

    This will add a new Height constraint to the list of constraints for that control which you can then edit. Changes directly reflect in InterfaceBuilder as you can see in the Screenshot below.

    interface builder height constraint

提交回复
热议问题