在MKMapView中遇到警告`边界矩形错误`

时间:2019-04-22 06:19:48

标签: ios swift mkmapview

我有一个MKMapView,我在做clustering

第一次加载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}>

此警告是什么,如何解决此警告?由于我假设此警告会干扰注释计数。

0 个答案:

没有答案