ios – XCode 8:基本的MKMapView会引发警告

前端之家收集整理的这篇文章主要介绍了ios – XCode 8:基本的MKMapView会引发警告前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在一个XCode 8 Swift 3项目中,我有一个只包含MKMapView的ViewController.每当我转到这个ViewController时,我都会收到以下警告打印输出

MyProject[2141:497518] [LogMessageLogging] 6.1 <private>
Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)
ERROR /BuildRoot/Library/Caches/com.apple.xbs/Sources/VectorKit/VectorKit-1228.30.7.17.9/GeoGL/GeoGL/GLCoreContext.cpp 1763: InfoLog SolidRibbonShader:
ERROR /BuildRoot/Library/Caches/com.apple.xbs/Sources/VectorKit/VectorKit-1228.30.7.17.9/GeoGL/GeoGL/GLCoreContext.cpp 1764: WARNING: Output of vertex shader 'v_gradient' not read by fragment shader


Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)
Painter Z index: 1023 is too large (max 255)

我不知道为什么会这样,也不知道如何解决它.这只是一个带有地图的ViewController,仅此而已,我不明白为什么会出现这些问题.

解决方法

我在我的应用程序中也遇到了同样的问题.但是我注意到这个问题与MKMapType和缩放地图有关,即当您设置地图视图或缩放地图视图的区域时,标准和混合MKMapType会显示错误.我通过将MKMapType标准更改为Satellite来解决这个问题,这只是在模拟器上进行app测试时才会出现问题,但在实际设备中没有这样的警告.希望这会帮助你.

谢谢

猜你在找的iOS相关文章