How to detect the Retina Display in MonoTouch

我的未来我决定 提交于 2019-12-06 00:43:51

问题


Just that question I want to detect the retina display in my MonoTouch app. Thanks.


回答1:


There are already answers for ObjectiveC but here's a C# version:

 bool retina = (UIScreen.MainScreen.Scale > 1.0);

That will work for the newer iPhone and iPod Touch and I suspect (will know in less than two weeks) for the new iPad.

Jason's approach will work too and can be attractive if you need to know several hardware related features (e.g. retina + camera).



来源:https://stackoverflow.com/questions/9611784/how-to-detect-the-retina-display-in-monotouch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!