bharath bharath - 5 months ago 17
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.