Question : set time programmatically swift
Answered by : lonely-locust-jvlikyrfvmyf
@interface ViewController : UIViewController
{ IBOutlet UISwitch *onOffSwitch; UIDatePicker *myPicker;
}
-(IBAction)onOffSwitch:(id)sender;
@end
Source : https://stackoverflow.com/questions/17334345/programmatically-setting-datepicker-time-to-current-time | Last Update : Fri, 11 Feb 22