2011-12-20 4 views
1

Google 로고가없는 MKMAPView에서 축소판 이미지를 만들 때 Apple에서 허용 할만한가요? 다음과 같은 예 미리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

주지도보기 'Google 로고'

을 가지고 있기 때문에 예는, 'Google 로고'없이 허용입니다