gpt4 book ai didi

iphone - iOS6 map ,我所有 map 上都缺少详细信息披露按钮(蓝色 V 形)!如何取回

转载 作者:行者123 更新时间:2023-12-03 18:56:30 27 4
gpt4 key购买 nike

我的理解是迁移到 iOS 6 map 没有问题。但由于某种原因,我的 map 应用程序中现在缺少详细信息披露按钮。有没有办法把这个找回来。哇,完全出乎意料。这已经有效多年,所以所有代表都很好。

#pragma mark MKMapViewDelegate
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {

MKPinAnnotationView *pin = [[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"REUSEME"] autorelease];
UIButton *button = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];

if ([annotation isKindOfClass:[MKUserLocation class]]) {
pin.animatesDrop = YES;
return nil;
} else {
[pin setPinColor:MKPinAnnotationColorGreen];
}

pin.rightCalloutAccessoryView = button;
pin.animatesDrop = YES;
pin.canShowCallout = YES;

return pin;
}

最佳答案

现在在 iOS 6 中,您必须在将注释添加到 mapView 之前设置委托(delegate)

在这里看到:http://www.openradar.me/12346693

关于iphone - iOS6 map ,我所有 map 上都缺少详细信息披露按钮(蓝色 V 形)!如何取回,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12512224/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com