views:

773

answers:

1

Hi,

is there any way to get the users screen resolution with objective c?

Thanks.

Solution:

int width = [[NSScreen mainScreen] frame].size.width;
int height = [[NSScreen mainScreen] frame].size.height;
+2  A: 

Check out NSScreen.

Nicholas Riley