I am not familiar with the 'checkbox' in iOS, but if you use UISwitch, then as you can see from the development API, the setOn: animated: task should do the trick.
- (void)setOn:(BOOL)on animated:(BOOL)animated
So, to set the switch to your program, you should use:
Objective-c
[switchName setOn:YES animated:YES]
Swift
switchName.setOn(true, animated: true)
Andrew_L Oct 17 2018-11-21T00: 00-11
source share