Forum Xamarin.iOS

EntryEnded not firing

DanMiserDanMiser USMember ✭✭
edited March 2017 in Xamarin.iOS

I'm running
Xamarin Studio Community
Version 6.2 (build 1821)
Installation UUID: edc474dc-0a76-4560-9983-4c4f45e65b1c
Runtime:
Mono 4.8.0 (mono-4.8.0-branch/e4a3cf3) (64-bit)
GTK+ 2.24.23 (Raleigh theme)

Package version: 408000495

Xamarin.iOS
Version: 10.4.0.123 (Xamarin Studio Community)
Hash: 35d1ccd
Branch: cycle9
Build date: 2017-02-16 17:40:00-0500

I'm not seeing EntryElement.EntryEnded firing anymore. I can reproduce by running Monotouch.Dialog with the following modifications in DemoElementApi.cs:
new EntryElement ("Login", "Your login name", null)
{
EnablesReturnKeyAutomatically = true,
AlignEntryWithAllSections = true,
// Add the line below
EntryEnded = HandleEnded
},

    void HandleEnded(object sender,EventArgs e)
    {
        throw new NotImplementedException();
    }

The HandleEnded method is never fired. Can anyone else confirm this behavior? Any suggestions on a workaround?

I just updated to the latest alpha bits, and it's the same behavior. Breakpoints are being hit on entry.Started and entry.EditingChanged - just not entry.Ended.

Thanks.

Posts

  • ShaneBoyedShaneBoyed NZMember ✭✭

    I had the same problem. Just about to release a new version so I rolled Xamarin Studio back to 6.1.5 build 10 for now.

  • DanMiserDanMiser USMember ✭✭
    edited March 2017

    Thanks. Good to know I'm not alone. Support wanted me to do a clean install. Haven't got there yet. In the meantime, I went this way to get things working again:
    field.AddTarget((sender,e) => {
    HandleEntryEnded(sender,e);
    },UIControlEvent.EditingDidEnd);

  • sky.1740sky.1740 USMember

    I have the same problem. While the event is broken in iOS 10 devices it's still working when using an iOS 9.3 device ...

  • ErnestJErnestJ AUMember ✭✭✭

    Same issue here, started another thread by mistake, search didn't find this one for some reason. Had to roll Xamarin.iOS back to 10.3.1.8 for it to work.

Sign In or Register to comment.