[英]Annotations under callout gets triggered when touching callout on iOS 6
我在处理这些注释时遇到了麻烦...
首先在 iOS 6 设备上打开应用程序时,引脚会显示在标注的顶部,可以通过以下方式修复:
- (void)didMoveToSuperview {
[super didMoveToSuperview];
[self.superview bringSubviewToFront:self];
}
现在,当我点击标注时,下方的引脚会被触发关闭当前标注并打开新标注。
我试过覆盖:
touchesBegan:, touchesMoved: and touchesEnded
而不是在其中调用 super ,以防止调用传播到它后面的层 - 没有任何运气......
任何人的想法? 它在 iOS 5 上运行良好......
在添加注释之前尝试设置您的代表 - 如果您还没有
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.