不总是调用MKMapView regionDidChangeAnimated! [英] MKMapView regionDidChangeAnimated not always called!

查看:114
本文介绍了不总是调用MKMapView regionDidChangeAnimated!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这令我感到沮丧!!!

This is frustrating me!!!

大部分时间都会调用它,但随后会停止响应。它将在屏幕旋转和双击时调用。不要紧张!

It will be called most of the time but then it stops responding to the pinches. It will be called on a screen rotate and a double tap. Not to a pinch!

帮助!

推荐答案

我在工作在某些具有相同问题的代码上,结果问题是带有 UIGestureRecognizer 的子视图已作为子视图添加到 MKMapView ,有时,它们会导致某些委托方法无法触发。

I was working on some code that had the same issue and turns out the problem was a subview with a UIGestureRecognizer had been added as a subview to MKMapView, and sometimes, they would cause some delegate methods not to fire.

因此请确保您没有向 MKMapView 。

希望这会有所帮助。

这篇关于不总是调用MKMapView regionDidChangeAnimated!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆