MKAnnotationView中的条纹

时间:2012-10-25 14:31:29

标签: ios mkmapview subclass mkannotationview mapkit

在我们制作的app中,我们使用了子类化的MKAnnotationView。我们添加

PLCalloutButton* rightButton = [PLCalloutButton buttonWithType:UIButtonTypeCustom];
rightButton.tag = PLTagDetailPin;
self.rightCalloutAccessoryView = rightButton;

PLFavoriteButton* favoriteButton = [PLFavoriteButton buttonWithType:UIButtonTypeCustom];
favoriteButton.zoneInfo = zoneInfo;
self.leftCalloutAccessoryView = favoriteButton;

这就是这个子类中发生的一切。

当点击注释时,视图按预期显示,但有时会出现奇怪的条纹,就像拉伸没有正确完成一样。如下所示,背景的一部分缺失,有时背景的这个条纹在注释视图中的其他位置(所以我们也有一个暗条纹)。

我该如何解决这个问题?

stripe in MKAnnotationView

0 个答案:

没有答案