问题
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;
回答1:
Check out NSScreen.
来源:https://stackoverflow.com/questions/1868677/objective-c-how-to-get-current-screen-resolution