加载资产目录图像
使用 UIImage.FromBundle(string imageName) 从资产目录加载图像
UIImage image = UIImage.FromBundle("ImageName");
// use the name of the image set from the asset catalog
你可以将图像用于 UIImageView 或你需要做的任何其他事情。
使用 UIImage.FromBundle(string imageName) 从资产目录加载图像
UIImage image = UIImage.FromBundle("ImageName");
// use the name of the image set from the asset catalog
你可以将图像用于 UIImageView 或你需要做的任何其他事情。