From ce3cc585cfc95f28eceb7c94f3261ba2d5080a34 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Sun, 22 Aug 2021 09:27:03 +0700 Subject: [PATCH] Fix crash when logging surfaceRect --- Natives/SurfaceViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Natives/SurfaceViewController.m b/Natives/SurfaceViewController.m index 4105e232..8a641d16 100644 --- a/Natives/SurfaceViewController.m +++ b/Natives/SurfaceViewController.m @@ -84,7 +84,7 @@ float resolutionScale; savedHeight = roundf(height * screenScale); CGRect surfaceRect = CGRectMake((width - width * resolutionScale) / 2, (height - height * resolutionScale) / 2, width * resolutionScale, height * resolutionScale); - NSLog(@"Debug: surfaceRect=%@", surfaceRect); + NSLog(@"Debug: surfaceRect=%@", NSStringFromCGRect(surfaceRect)); self.surfaceView = [[MGLKView alloc] initWithFrame:surfaceRect]; NSLog(@"Debug: surfaceView=%@", self.surfaceView); [self.view addSubview:self.surfaceView];