Load an image from a url

2019-07-04 04:23发布

问题:

How can I load an image to a UIImage object from the url of the image? Currently, I am loading the image using UIImage.FromFile, and including the image as content, but I need to be able to grab it from another website.

image.Image = UIImage.FromFile("images/imageName.jpg");

回答1:

Take a look at the blog post Displaying web images with MonoTouch - UIWebImageView.



标签: xamarin.ios