Hi,
I have an App showing maps using the RouteMe Library from 2013.
With the iOS Beta 13 something went wrong and from a certain zoom level onward nothing is drawn.
I debug the issue and I find that, after having created/loaded in some way an UIImage containing a pice of map it is loaded in the
- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)context in a view which layer is a CATiledLayer
Inside this method the image is load using the following code:
CGRect rect = CGContextGetClipBoundingBox(context);
UIGraphicsPushContext(context);
[tileImage drawInRect:rect];
This piece of code always worked in previous IOS version and it is working until the rect.size.width and .height >= 0.5, as soon it becomes 0.25 or less it does nothing (completely gray screen).
I found that if I use the following code everything works fine (except image is upside-down but this can be easily solved):
CGContextDrawImage(context, rect, tileImage.CGImage);
Does anyone knows if this is a bug in the IOS 13 Beta and so it will be solved or do I have to change my code using the CGContextDrawImage ?