我在我的应用程序中使用以下代码。
string imageUrl = "https://imageUrl.png/"; //This is a valid url. I can see the image when I paste the url into my web browser
var url = new NSUrl(imageUrl);
using (CGImageSource source = CGImageSource.FromUrl(url))
{
if (source != null)
{
//I never get here
}
}
为什么source
总是为空?我尝试了很多不同imageUrls
的方法,结果都一样。