mkmapview缩略图

时间:2011-12-20 10:36:38

标签: iphone ios4 mkmapview mkannotationview

我在没有Google徽标的MKMAPView中创建缩略图,是否可以被Apple接受? 如下面的示例缩略图

  CGPoint annotationPoint = [mapView convertCoordinate:view.annotation.
    coordinate toPointToView:_mapView];

 float boxDY=annotationPoint.y;
float boxDX=annotationPoint.x;
CGRect box = CGRectMake(boxDX,boxDY,100,100);
UIGraphicsBeginImageContext(_mapView.frame.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIImage *img=[UIImage imageWithCGImage:CGImageCreateWithImageInRect
  ([image  CGImage],CGRectMake(box.origin.x-30, box.origin.y-35,75, 75))];
UIImageWriteToSavedPhotosAlbum(img, nil, nil, nil);
UIGraphicsEndImageContext();

1 个答案:

答案 0 :(得分:1)

是的,没有'Google徽标'是可以接受的,因为主地图视图有“Google徽标”