I have a UISegmentedControl and I want to change the selected segment programmatically by a value on another view controller. I attempted to use an NSString but it is not working. Any ideas?
I have a UISegmentedControl and I want to change the selected segment programmatically by
Share
just use NSUserDefaults.
save your string in NSUserDefaults in another view controller like
then make if condition in a viewcontroller which has UISegmentedcontroll like
first get nsstring from nsuserdefaults like
then make if condition