objective c – Google Map layer snapshot in iOS 17.2 is blank


I have developed an iOS app (way back with ObjectiveC) which creates an image of the current Google Map on the screen. I always have used this code, which ran fine:

UIGraphicsBeginImageContextWithOptions(self.map.frame.size, NO, 0.0);
[self.map.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;

Now I have the problem that since iOS 17.2 the image is empty (only the Google logo is shown, but no map information at all).

Does anybody know what the issue is?

Thx,
Danny

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img