How is comparing operator '==' for NSObject [duplicate]
问题 This question already has answers here : Should you use 'isEqual' or '=='? (2 answers) Closed 5 years ago . How is comparing operator ' == ' for NSObject ? Method -isEqual: works fine for me, but when I'm using -isEqual I need to check if objects exists. With ' == ' I don't need to check this but where I can find documentation for it? 回答1: From Apple documentation: Returns a Boolean value that indicates whether the receiver and a given object are equal. (required) This method defines what it