Skip to content

First Commit#31

Open
JustineKay wants to merge 4 commits intoaccesscode-2-2:masterfrom
JustineKay:master
Open

First Commit#31
JustineKay wants to merge 4 commits intoaccesscode-2-2:masterfrom
JustineKay:master

Conversation

@JustineKay
Copy link

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is 100% correct. You could make it a bit more concise by just return the result of the isEqualToString method call:

- (BOOL)checkSameCity:(NSString *)city {
  return [_city isEqualToString:city];
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, yes. Thanks!

I originally had it that way, then I changed it in order to NSLog the
answer Yes or No as a way to check myself. Otherwise it only returned a 1
or 0.

Thanks again!

Justine
On Jun 29, 2015 11:47, "Mike Kavouras" notifications@github.com wrote:

In Person/Person/main.m
#31 (comment)
:

@@ -51,13 +59,55 @@ - (NSString *)phoneNumber {
return _phoneNumber;
}

-@EnD
+- (BOOL)checkSameCity:(NSString *)city {

This is 100% correct. You could make it a bit more concise by just return
the result of the isEqualToString method call:

  • (BOOL)checkSameCity:(NSString *)city {
    return [_city isEqualToString:city];
    }


Reply to this email directly or view it on GitHub
https://github.com/accesscode-2-2/unit-0-hw-week-2/pull/31/files#r33478010
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants