Wednesday, December 20, 2023
HomeiOS Developmentgoal c - Google Map layer snapshot in iOS 17.2 is clean

goal c – Google Map layer snapshot in iOS 17.2 is clean


I’ve developed an iOS app (approach again with ObjectiveC) which creates a picture of the present Google Map on the display screen. I at all times have used this code, which ran fantastic:

UIGraphicsBeginImageContextWithOptions(self.map.body.dimension, NO, 0.0);
[self.map.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *picture = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return picture;

Now I’ve the issue that since iOS 17.2 the picture is empty (solely the Google brand is proven, however no map data in any respect).

Does anyone know what the problem is?

Thx,
Danny



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments