title: Objective C - how to get current screen resolution?
body: <p>is there any way to get the users screen resolution with objective c?</p>
  
  <p>Thanks.</p>
  
  <p>Solution:</p>
  
  <pre><code>int width = [[NSScreen mainScreen] frame].size.width;
  int height = [[NSScreen mainScreen] frame].size.height;
  </code></pre>