From 396aca51660971f32bba2e81dd467d0eb837d47f Mon Sep 17 00:00:00 2001 From: Michael Ho Chum Date: Fri, 20 Dec 2013 02:03:15 -0500 Subject: [PATCH] instancetype in initializer instead of id In the declaration conventions, one of the rule says "Constructors should generally return instancetype rather than id" so perhaps the example of an initializer above should use "instancetype" instead of "id" --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ca2bdd..8587dff 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ Unless explicitly contradicted below, assume that all of Apple's guidelines appl #pragma mark Lifecycle -+ (id)objectWithThing:(id)thing {} -- (id)init {} ++ (instancetype)objectWithThing:(id)thing {} +- (instancetype)init {} #pragma mark Drawing