简体   繁体   中英

How to detect the Retina Display in MonoTouch

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

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 (eg retina + camera).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM