From 79ab49e0ebabc45e596dce1dc9614e582b1817ae Mon Sep 17 00:00:00 2001 From: Sergey Zolotarev Date: Wed, 1 Jun 2016 11:59:02 +0700 Subject: [PATCH] "count" is a property, not a method I'm not sure if `count` was a property when this style guide was written, but it is in current iOS SDK. I think this needs to be updated. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5aafee6..4768880 100644 --- a/README.md +++ b/README.md @@ -322,14 +322,14 @@ Dot-notation should **always** be used for accessing and mutating properties, as **Preferred:** ```objc -NSInteger arrayCount = [self.array count]; +NSInteger arrayCount = self.array.count; view.backgroundColor = [UIColor orangeColor]; [UIApplication sharedApplication].delegate; ``` **Not Preferred:** ```objc -NSInteger arrayCount = self.array.count; +NSInteger arrayCount = [self.array count]; [view setBackgroundColor:[UIColor orangeColor]]; UIApplication.sharedApplication.delegate; ```