如何在MKCircle中创建文本叠加(iOS MapKit叠加)

时间:2012-06-05 04:29:49

标签: ios overlay mapkit

我已经广泛搜索了一个合适的解决方案,但还没找到。

-(MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id)overlay 
{
    MKCircleView* circleView = [[[MKCircleView alloc] initWithOverlay:overlay] autorelease];
    circleView.fillColor=[UIColor redColor];
    return circleView;
}

-(void)overlay{
    MKCircle *circleOverlay;

    CLLocationCoordinate2D coords = CLLocationCoordinate2DMake(1.303819,103.7689956); //giza
    circleOverlay=[MKCircle circleWithCenterCoordinate:coords radius:200];
    [self.mapView addOverlay:circleOverlay];

}

是否有一种简单的方法可以将文字添加到此圈子中?

0 个答案:

没有答案