UISwitch code interface compatibility

By this patch, SevenSwitch can be a drop-in replacement of original UISwitch