title: -[Not A Type retain]: message sent to deallocated instance
body: <p>I have converted my app to use ARC.</p>
  
  <p>Before I had the following line of code:</p>
  
  <pre><code>NSArray *colors = [NSArray arrayWithObjects:startColor, endColor, nil];
  </code></pre>
  
  <p>Since the implicit conversion of a non-Objective-C pointer type to 'id' is disallowed with ARC, I rewrote the line like this:</p>
  
  <pre><code>NSArray *colors = [NSArray arrayWithObjects:(__bridge id)startColor, (__bridge id)endColor, nil];
  </code></pre>
  
  <p>Everything works fine on the simulator, however on the device the app crashes on the mentioned line with the error message:</p>
  
  <pre><code>-[Not A Type retain]: message sent to deallocated instance
  </code></pre>
  
  <p>Any ideas how to solve it?</p>