提交 8ccc957f 编写于 作者: I Ian Fischer

A couple of pieces of polish for iOS.

 - Make space for the iOS status bar.
 - Set the iOS status bar to use white text.
上级 057ffee8
......@@ -35,6 +35,9 @@
<string>armv7</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false />
<!--
Sky Load URL
-->
......
......@@ -100,6 +100,10 @@ static sky::InputEventPtr BasicInputEventFromRecognizer(
metrics->physical_width = size.width * scale;
metrics->physical_height = size.height * scale;
metrics->device_pixel_ratio = scale;
metrics->padding_top =
[UIApplication sharedApplication].statusBarFrame.size.height;
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
_sky_engine->OnViewportMetricsChanged(metrics.Pass());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册