In this recipe we will be creating a subclass of
MKNetworkEngine; this creates an iTunes engine to perform a search using the iTunes Web API. While it is not necessary to create a subclass of
MKNetworkEngine for each host that you are connecting to, it is recommended.
There are three main advantages to subclassing
MKNetworkEngine. They are as follows:
MKNetworkEnginecontains its own
Reachabilityobject will notify our class if there are changes in its availability or how we connect to the server.
For best practice, we want to set ...