Closed TSkovsgaard closed 8 years ago
Setting the switch to preselected doesn't seem to work
SCLAlertView alert = [[SCLAlertView alloc] init]; SCLSwitchView switchView = [alert addSwitchViewWithLabel:@"Use local maps"]; [switchView setSelected:true];
Also tried [[SCLSwitchView appearance]setSelected:true];
But without luck.
Is this not possible ? Thanks
Fixed by PR #226
Setting the switch to preselected doesn't seem to work
SCLAlertView alert = [[SCLAlertView alloc] init]; SCLSwitchView switchView = [alert addSwitchViewWithLabel:@"Use local maps"]; [switchView setSelected:true];
Also tried [[SCLSwitchView appearance]setSelected:true];
But without luck.
Is this not possible ? Thanks