问题描述
我正在尝试设置我的 MKAnnotationView 图像的色调颜色,以便它在暗模式下运行-
pinView = mapView.dequeueReusableAnnotationView(withIdentifier: WeatherMapViewController.mapViewWeatherID)
if pinView == nil {
pinView = MKAnnotationView(annotation: annotation,reuseIdentifier: WeatherMapViewController.mapViewWeatherID)
pinView?.image = UIImage(systemName: "cloud.sun.rain")?.withTintColor(.label,renderingMode: .alwaysOriginal)
但是无论色调颜色如何,SF 符号图像始终为黑色。任何人都可以建议一种在黑暗模式下使图标变亮的方法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)