Objective C - how to get current screen resolution?

Viewed 12807

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 Answers

[UIScreen mainScreen].nativeBounds

Related