mkpinannotationview

    0热度

    1回答

    我无法想象为什么它不起作用。 我想更改引脚颜色,并使用此方法提供的其他一些东西,但它不起作用。 也许即时使用这种方法是错误的? 示例将是最好的,谢谢。 [mapView setMapType: MKMapTypeStandard]; [mapView setZoomEnabled:YES]; [mapView setScrollEnabled:YES]; for (NSDictionary

    2热度

    3回答

    我创建了一个自定义的MKAnnotation类,它一直工作 - 直到iOS 6出来。自那时以来,我的针脚被添加到苹果地图,但现在没有下降动画!这是如何设置的,或者我做事的方式可能存在问题。我已经设置了1秒的延迟时间,直到调用将注释添加到地图的方法为止,所以我可以看到在视图出现之前是否实际上发生了拖放动画 - 仍然,这些引脚只是从无处出现而没有丢失。下面是我使用的代码: -(MKAnnotation

    0热度

    2回答

    我知道类似的问题已经被问到,但我只能找到答案。所以,我正在构建一个拥有超过100个引脚的应用程序,将它写入实现将会非常重要。有没有人知道你以前的经验如何使用属性列表文件来存储坐标,然后阅读它们并将Pins放置在我的地图上?这样做的最好方法是什么,因为我确实使用过plist文件(除了编辑它们)。 任何教程?

    3热度

    2回答

    我继承了这行抛出这个警告 Incompatible pointer types assigning to 'MKPinAnnotationView *' from 'MKAnnotationView *' 项目 pinView=[[[MKAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:defaultPinID

    9热度

    2回答

    我上的MapView的显示用户的化身的图像。如果不使用动画呈现化身,那么这些化身似乎可以正常工作,但是我想为它们制作动画。如果我设置pinView.animatesDrop为真,那么我失去了形象,它被销取代。如何在不使用引脚的情况下为我的头像下拉动画? 这里是我的viewForAnnotation方法我使用: - (MKAnnotationView *)mapView:(MKMapView *)m

    0热度

    1回答

    在我的应用程序中,我根据设备标题旋转MapView,我只有一个注释,并且我正在旋转它的pin并且它也是pinView。 我的旋转方法是下一个功能里面 - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading { if (newHeading.headingAccura

    0热度

    1回答

    我想像MKPinAnnotationView Pin那样以编程方式绘制Pin,而不是使用Pin图像。如果有人有想法,请帮助我。 感谢

    0热度

    1回答

    标题几乎可以解释它。可能吗?我试图这样分配它: UIBarButtonItem *leftButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(saveAnnotation:)]; pinView.leftCallou

    0热度

    2回答

    我有这样的代码删除,并在我的地图上添加新的引脚: - (IBAction)setLocation:(id)sender{ NSMutableArray *toRemove = [NSMutableArray arrayWithCapacity:1]; for (id annotation in map.annotations) if (annotation !=

    8热度

    1回答

    当MKMapView启用MKUserTrackingModeFollowWithHeading时,我遇到了MKAnnotationView的问题。 我使用MKAnnotationView的centerOffset属性定位了我的图像。指定针的针尖相对于在图像的中心坐标系的坐标是有点反intutive,但我想出了下面的公式: annotationView.centerOffset = CGPointM