Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios MKAnnotationView中的条纹_Ios_Mkmapview_Subclass_Mkannotationview_Mapkit - Fatal编程技术网

Ios MKAnnotationView中的条纹

Ios MKAnnotationView中的条纹,ios,mkmapview,subclass,mkannotationview,mapkit,Ios,Mkmapview,Subclass,Mkannotationview,Mapkit,在我们制作的一个应用程序中,我们使用了一个子类MKAnnotationView。我们加上 PLCalloutButton* rightButton = [PLCalloutButton buttonWithType:UIButtonTypeCustom]; rightButton.tag = PLTagDetailPin; self.rightCalloutAccessoryView = rightButton; 及 这就是这个子类中发生的所有事情 点击注释时,视图将按预期显示,但有时会出现奇

在我们制作的一个应用程序中,我们使用了一个子类MKAnnotationView。我们加上

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

这就是这个子类中发生的所有事情

点击注释时,视图将按预期显示,但有时会出现奇怪的条纹,好像拉伸未正确完成。如下图所示,部分背景缺失,有时此背景条纹位于annotationview中的其他位置(因此我们也有一条暗条纹)

我怎样才能解决这个问题


您是否尝试过在缩小或简化的程序实现中重现问题?它是否出现在任何特定版本的iOS或任何特定类型的设备上?它是否同时发生在模拟器和设备上?如果旋转视图并重新绘制屏幕,会发生什么情况?所有iOS版本和所有设备。此特定应用程序仅为纵向应用程序。并非所有注释都会出现这种情况,只有一些注释会出现这种情况。当您使用标准UIButton时,是否也会出现这种情况?您的背景图像是自定义的还是默认的?
PLFavoriteButton* favoriteButton = [PLFavoriteButton buttonWithType:UIButtonTypeCustom];
favoriteButton.zoneInfo = zoneInfo;
self.leftCalloutAccessoryView = favoriteButton;