It has been 4 years since this question has been answered with this blog post.
Is there a standard way to create a UIImage with an image from a URL? Something like:
With new await/async support you can do:
public async Task LoadImage (string imageUrl)
{
var httpClient = new HttpClient();
Task contentsTask = httpClient.GetByteArrayAsync (imageUrl);
// await! control returns to the caller and the task continues to run on another thread
var contents = await contentsTask;
// load from bytes
return UIImage.LoadFromData (NSData.FromArray (contents));
}
and you call this with:
someYourUIImageObjectOnUI.Image = await this.LoadImage ("some image url");