Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Created December 5, 2017 20:29
Show Gist options
  • Save sjehutch/4d4932225540600dca1b17c45bdd4226 to your computer and use it in GitHub Desktop.
Save sjehutch/4d4932225540600dca1b17c45bdd4226 to your computer and use it in GitHub Desktop.
save username checkbox xamarin iOS font awesome
bool saveUserClick;
this.saveUserClick = true;
partial void BtnSaveUsername_TouchUpInside(UIButton sender)
{
if (saveUserClick == true)
{
saveUserClick = false;
btnSaveUsername.SetTitle("Save Username ", UIControlState.Normal);
btnSaveUsername.Font = UIFont.FromName("FontAwesome", 14);
}
else
{
saveUserClick = true;
btnSaveUsername.SetTitle("Save Username ", UIControlState.Normal);
btnSaveUsername.Font = UIFont.FromName("FontAwesome", 14);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment