How to get width and height of iPhone/iPad using MonoTouch?

bharath picture bharath · Mar 25, 2011 · Viewed 15.9k times · Source

I need to get the width and height of iPhone/iPad using MonoTouch.

How to get programmatically?

Answer

Dimitris Tavlikos picture Dimitris Tavlikos · Mar 25, 2011

To get the screen size of the device, call UIScreen.MainScreen.Bounds. It returns a RectangleF with the screen size.