Cannot invoke initializer for type 'CGFloat' with an argument list of type '(CGFloat)'
<p>I am not quite understanding this compile error because I don't get this error and can compile and run on a real device, but if I try to build and run on a simulator I get this error. </p>

<blockquote>
  <p>Cannot invoke initializer for type 'CGFloat' with an argument list of type '(CGFloat)'</p>
</blockquote>

<p>Here is the line of code that causes the error:</p>

<pre><code>loadingNotification.yOffset = CGFloat(CGRectGetMinY(self.tableView.bounds))
</code></pre>

<p>Furthermore if I change it to </p>

<pre><code>loadingNotification.yOffset = Float(CGRectGetMinY(self.tableView.bounds))
</code></pre>

<p>It works on the simulators but not on the real device I get </p>

<blockquote>
  <p>'Cannot assign value of type 'Float' to type 'CGFloat'</p>
</blockquote>

<p>Any ideas to as why this is behaving like this?</p>