[MonoTouch] GetNativeField error

Jeff Stedfast jeff at xamarin.com
Tue Oct 18 14:58:11 EDT 2011


Hi sisnaz,

GetNativeField() sounds like it was added in the .xib.designer.cs file.

The clean way of removing this would probably be to edit the .xib and remove
the outlet for that field. If you've already done that and it didn't work,
try removing the ImageView property accessor in the .xib.designer.cs file
manually.

Hope that helps!

Jeff

On Mon, Oct 17, 2011 at 4:25 PM, sisnaz <jdegrey at comcast.net> wrote:

> I'm trying to find a solution to my problem. I've had a functional app that
> worked up until now. All I did was add an ImageView to my existing view and
> now I get this compile error:
> Error CS1061: Type `MyApp.LoginView' does not contain a definition for
> `GetNativeField' and no extension method `GetNativeField' of type
> `MyApp.LoginView' could be found (are you missing a using directive or an
> assembly reference?) (CS1061) (MyApp)
>
> I've removed the image view, deleted the code and let the designer
> re-generate, but nothing I do so far has fixed it. I'm really stuck aside
> from starting over with a new project. Any suggestions would be greatly
> appreciated.
>
> I'm currently running MonoDevelop 2.6.1 if that's helpful at all.
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/GetNativeField-error-tp3913297p3913297.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111018/118ed900/attachment.html 


More information about the MonoTouch mailing list