dogo / SCLAlertView

Beautiful animated Alert View. Written in Objective-C
MIT License
3.5k stars 534 forks source link

Can't set selected on SCLSwitchView #214

Closed TSkovsgaard closed 8 years ago

TSkovsgaard commented 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

dogo commented 8 years ago

Fixed by PR #226