Xamarin Forms Image control iOS Error

hi,

when i am setting values to my Image control .

Image img = new Image();
img.source = localpath

getting error like "Could not initialize an instance of the type 'UIKit.UIImage': the native 'initWithContentsOfFile:' method returned nil.
It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false. (System.Exception)"

i am using Xamarin.Forms, Where can i specify "MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure "

please help.

Sign In or Register to comment.