首页 > 解决方案 > 遇到警告“MKMapView 中的边界矩形错误”

问题描述

我有一个MKMapView,我正在做集群

第一次加载 mapView 时出现以下错误。

2019-04-22 11:05:33.003610+0530 Clustering[3528:57208] [Assert] Bounding path likely out of sync with its coordinate space: The view's bounds must contain the bounding rect. Bounding rect: {{0, 0}, {375, 559}}; coordinate space: <UIScrollView: 0x7fc9f1863a00; frame = (0 0; 375 559); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x6000024ab000>; layer = <CALayer: 0x600002ae5380>; contentOffset: {375, 0}; contentSize: {750, 559}; adjustedContentInset: {0, 0, 0, 0}>
2019-04-22 11:05:33.003929+0530 Clustering[3528:57208] [Assert] Bounding path likely out of sync with its coordinate space: The view's bounds must contain the bounding rect. Bounding rect: {{0, 0}, {375, 559}}; coordinate space: <UIScrollView: 0x7fc9f1863a00; frame = (0 0; 375 559); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x6000024ab000>; layer = <CALayer: 0x600002ae5380>; contentOffset: {375, 0}; contentSize: {750, 559}; adjustedContentInset: {0, 0, 0, 0}>
2019-04-22 11:05:33.004344+0530 Clustering[3528:57208] [Assert] Bounding path likely out of sync with its coordinate space: The view's bounds must contain the bounding rect. Bounding rect: {{0, 0}, {375, 559}}; coordinate space: <UIScrollView: 0x7fc9f1863a00; frame = (0 0; 375 559); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x6000024ab000>; layer = <CALayer: 0x600002ae5380>; contentOffset: {375, 0}; contentSize: {750, 559}; adjustedContentInset: {0, 0, 0, 0}>
2019-04-22 11:05:33.014910+0530 Clustering[3528:57208] [Assert] Bounding path likely out of sync with its coordinate space: The view's bounds must contain the bounding rect. Bounding rect: {{0, 0}, {375, 559}}; coordinate space: <UIScrollView: 0x7fc9f1863a00; frame = (0 0; 375 559); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x6000024ab000>; layer = <CALayer: 0x600002ae5380>; contentOffset: {375, 0}; contentSize: {750, 559}; adjustedContentInset: {0, 0, 0, 0}>
2019-04-22 11:05:33.015356+0530 Clustering[3528:57208] [Assert] Bounding path likely out of sync with its coordinate space: The view's bounds must contain the bounding rect. Bounding rect: {{0, 0}, {375, 559}}; coordinate space: <UIScrollView: 0x7fc9f1863a00; frame = (0 0; 375 559); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x6000024ab000>; layer = <CALayer: 0x600002ae5380>; contentOffset: {375, 0}; contentSize: {750, 559}; adjustedContentInset: {0, 0, 0, 0}>
2019-04-22 11:05:33.016501+0530 Clustering[3528:57208] [Assert] Bounding path likely out of sync with its coordinate space: The view's bounds must contain the bounding rect. Bounding rect: {{0, 0}, {375, 559}}; coordinate space: <UIScrollView: 0x7fc9f1863a00; frame = (0 0; 375 559); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x6000024ab000>; layer = <CALayer: 0x600002ae5380>; contentOffset: {375, 0}; contentSize: {750, 559}; adjustedContentInset: {0, 0, 0, 0}>

这个警告是什么,我该如何解决这个警告?因为我认为这个警告会弄乱注释计数。

标签: iosswiftmkmapview

解决方案


推荐阅读