bharath bharath - 3 months ago 8
C# Question

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

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

How to get programmatically?

Answer

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