mkmapview 缩略图
我正在 MKMAPView 中创建没有 Google 徽标的缩略图,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();
I am creating thumbnail image in MKMAPView without Google logo ,Is it Acceptable by Apple?
like below Example Thumbnail
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();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,没有“Google 徽标”也是可以接受的,因为主地图视图有“Google 徽标”
Yes it's Acceptable without 'Google logo', because main map view have 'Google logo'