Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect the Retina Display in MonoTouch

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

like image 408
JMGH Avatar asked Mar 08 '12 01:03

JMGH


1 Answers

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).

like image 92
poupou Avatar answered Oct 23 '22 15:10

poupou