public override bool ResignFirstResponder ()
{
var flag = base.ResignFirstResponder();
if (flag) {
if (this.floatingLabel) {
if (this.floating && string.IsNullOrWhiteSpace (this.Text)) {
this.animateLabelBack ();
this.floating = false;
}
} else {
if (string.IsNullOrWhiteSpace (this.Text)) {
this.label.Layer.Opacity = 1;
}
}
this.label.TextColor = kDefaultInactiveColor;
this.showInactiveBorder ();
this.validate();
}
this.active = flag;
return flag;
}