The default option for the UILabel is depend on what the users choose last time.
Then, you need to save the value within the App by using the NSUserDefaults
.
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{
[[NSUserDefaults StandardDefaults] setObject:[NSNumber numberWithInt:row] objectForkey:@"selcetdRow"]
}
in the ViewDidLoad , just call this
[picker selectRow:[[NSUserDefaults StandardDefaults] objectForkey:@"selcetdRow"]intValue] inComponent:0 animated:YES];