title: Xcode compiler not accepting ternary operator
body: <p>I am using this one tiny bit of code:</p>
  
  <pre><code>CGFloat gradientLocations[2] = {1.0f, 0.0f};
  </code></pre>
  
  <p>which unfortunatelly has a bug, because the gradient points at one direction and is not correctly rotated. So I wanted to fix it with azimuth like this:</p>
  
  <pre><code>CGFloat gradientLocations[2] = self.isAzimuthDown ? {0.0f, 1.0f} : {1.0f, 0.0f};
  </code></pre>
  
  <p>But I keep getting error that I am missing ":", which I don't believe I am...my question is - what is wrong with it and how to fix it?</p>