isEqual:

Returns a Boolean value that indicates whether the receiver and a given object have identical URL strings and base URLs.

Overview

This method defines what it means for instances to be equal. Two NSURLs are considered equal if and only if they return identical values for both baseURL and relativeString.