I have a UISegmentedControl in one of my ViewControllers.This VC has a 'close' button,so the user makes a selection using the segmentedcontrol and then closes the window by clicking on the 'close' button.I want to use the value selected by the user in another VC.But the selection of the segmentedcontrol is not persisted. If I close the window and open it,the segmented control switches back to its original state. I have not set the segmented control to be 'Momentary'. Any idea why the state isn't persisted? And how do I access the selected index in another view controller?
问问题
162 次