Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Binding initWithCoder: constructor not being generated

$
0
0

I'm creating a binding for MLPAutoCompleteTextField, that contains a UITextField subclass declared this way:

[BaseType (typeof (UITextField),
    Delegates = new string [] { "AutoCompleteDataSource", "AutoCompleteDelegate" },
    Events = new Type[] { typeof(AutoCompleteTextFieldDataSource), typeof(AutoCompleteTextFieldDelegate) })]
public interface AutoCompleteTextField {

    // Method bindings go here
}

The problem that I'm getting is that the NSCoder constructor is not being generated, and if I try to create it manually adding the constructor binding:

[Export("initWithCoder:")]
IntPtr Constructor(NSCoder coder);

Then I get an error that the constructor already exists...

I'm using latest Alpha version if that matters. Attached the binding project (Makefile format).

Can anyone point me to the right direction?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>