Load Images from Web with Xamarin iOS EN
Hi Everybody, today I´m going to show you how to load images from the web in Xamarin in an iOS project, to do this first we need to follow these steps: Create a New Solution of Single view in Xamarin, if you don´t know how to do it please click here to see how to do it in a previous post Now edit your .xib file to add an Image View and three UIButtons Now let´s link our objects with their variables, when you have done this you can close your xCode Now in Xamarin go to [Name of your project].cs file create the following method: UIImage FromUrl ( string uri ) { using ( var url = new NSUrl ( uri )) using ( var data = NSData . FromUrl ( url )) return UIImage . LoadFromData ( data ) ; } Now on your [Name of your project].designer . cs file and add the following code on your respective areas, I'm going to paste all my class so in that way you can see how to implement this code using MonoTouc