Search code examples
c#iphoneipadxamarin.iosresolution

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?


Solution

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