How do I switch UIsegmentedControl programmatically?

后端 未结 6 1505
孤独总比滥情好
孤独总比滥情好 2021-02-01 11:47

How do I switch UISegmentedControl programmatically ?

6条回答
  •  心在旅途
    2021-02-01 12:27

    I've had a similar problem where the segmented control wasn't changing. I was calling "selectedSegmentIndex", etc too early. Once I called it after "viewDidLoad" was called then everything was fine again.

提交回复
热议问题