Closed Travloper closed 3 years ago
Because it is judged here that if the index does not change, valueChange will not be used.
But you can modify this code to force an update
After
setSelectIndex(index: index, animated: animated, sendAction: true, forceUpdate: true)
I want to get inside the value change event automatically during the viewWillAppear. There's an API call which indicates which tab should be active. I have achieved to set active tabs by
self.pinterstSegment.setSelectIndex(index: tab ?? 0)
But it doesn't catch up the value change event in -
(When i press any tab and then call goes back and forth. The "value change event" get called up automatically) Could you please guide me how i can invoke this value change event without clicking on any of the tabs in first go.