UIScreen class is gone in ios10 simulator sdk
<p>I used </p>

<blockquote>
  <p>[[UIScreen mainScreen] bounds].size.width</p>
</blockquote>

<p>code before ios10.
But when I build this code using ios10 simulator sdk, it occurs error like </p>

<blockquote>
  <p>"Receiver 'UIScreen' for class message is a forward declaration No
  known class method for selector 'mainScreen'".</p>
</blockquote>

<p>And I know the <strong>UIScreen</strong> class is not existed in ios10 simulator sdk not ios10 sdk.</p>

<p>first, Is it different <em>built in ios10 sdk</em> with <em>ios10 simulator</em>??
and second, How can I handle this compile error.</p>