The second code example (&quot;if you were doing this before ARC&quot;) is completely wrong. &quot;alloc&quot; is a class method that allocates memory for an instance, on which &quot;init&quot; is then called. Calling it on an instance returned by a factory method is nonsensical.<p>The error is made consistently all three times, so it&#x27;s clear that the author is genuinely confused about Objective-C. Maybe he&#x27;s better at Swift, but it doesn&#x27;t look good.