Handling The UISwitch ValueChanged Event To Determine State In MonoTouch

Posting this to help anyone that was stuck trying to determine why the UISwitch State value always returned 0. The mistake I was making when handling the ValueChanged Event was this (my IBOutlet is switchPrivateOnOff): switchPrivateOnOff.ValueChanged += delegate { switchPublicWarning.Text = string.Empty; switchPublicWarning.Text = switchPrivateOnOff.State.ToString();   // attempt to dump toggle value to UILabel };… Continue reading Handling The UISwitch ValueChanged Event To Determine State In MonoTouch