Objective C - how to get current screen resolution?
-
18-09-2019 - |
Question
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;
Solution
Check out NSScreen.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow