title: NS_DESIGNATED_INITIALIZER expected : (colon)
body: <p>I am trying to declare a designated initializer like this:</p>
  
  <pre><code>- (instancetype)initWithDelegate:(id &lt;MyDelegate&gt;)delegate NS_DESIGNATED_INITIALIZER;
  </code></pre>
  
  <p>But it is showing me this compilation error:</p>
  
  <pre><code>Expected ':'
  </code></pre>
  
  <p>Interestingly when I try to write it like this (reference link: <a href="https://developer.apple.com/library/prerelease/ios/releasenotes/ObjectiveC/ModernizationObjC/AdoptingModernObjective-C/AdoptingModernObjective-C.html">Adopting Modern Objective-C</a>) -</p>
  
  <pre><code>- (instancetype)init NS_DESIGNATED_INITIALIZER;
  </code></pre>
  
  <p>It shows this error:</p>
  
  <pre><code>Expected ';' after method prototype.
  </code></pre>
  
  <p>Any ideas on how to properly use NS_DESIGNATED_INITIALIZER?</p>