Ejemplo n.º 1
0
            public void EditingEnded(UITextField textField)
            {
                EventHandler handler = editingEnded;

                if (handler != null)
                {
                    handler(textField, EventArgs.Empty);
                }
                else
                {
                    // if this is executed before iOS10 and only the new API is used we'll raise the new event (if set)
                    EventHandler <UITextFieldEditingEndedEventArgs> handler2 = editingEnded1;
                    if (handler2 != null)
                    {
                        var args = new UITextFieldEditingEndedEventArgs(UITextFieldDidEndEditingReason.Unknown);
                        handler2(textField, args);
                    }
                }
            }
Ejemplo n.º 2
0
            public void EditingEnded(UITextField textField, UITextFieldDidEndEditingReason reason)
            {
                EventHandler <UITextFieldEditingEndedEventArgs> handler = editingEnded1;

                if (handler != null)
                {
                    var args = new UITextFieldEditingEndedEventArgs(reason);
                    handler(textField, args);
                }
                else
                {
                    // if this is executed on iOS10 (or late) and only the old API is used then we'll raise the old event (if set)
                    EventHandler handler2 = editingEnded;
                    if (handler2 != null)
                    {
                        handler2(textField, EventArgs.Empty);
                    }
                }
            }