2011-12-20 193 views
1

我在MKMAPView中創建沒有Google徽標的縮略圖圖像,蘋果可以接受嗎? 像下面的示例縮略圖mkmapview縮略圖圖像

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

是的,它沒有「谷歌標誌」可以接受的,因爲主要的地圖視圖有「谷歌的標誌」