UISegmentedControl change number of segments programmatically

后端 未结 7 1175
时光说笑
时光说笑 2020-12-14 05:26

Is there a way to change the number of segments programmatically?

7条回答
  •  失恋的感觉
    2020-12-14 05:52

    work for me, UIsegmentedControll contains two segments, i want add one in index 2, use this code in swift 2.2 use:

    SEG_TipoFiltro.insertSegmentWithTitle("Title", atIndex: 2, animated: false)
    

提交回复
热议问题