how to avoid that callback is sent to deallocated instance
问题 The following process leads to a crash of my app: the user opens a view and a request is send to the server the request is executed in background the user navigates back to the root view the request has been finished and the following code is executed // MyDatasource.m // e.g. in connectionDidFinishLoading [callback loadedDataSource:self]; In the meantime the other models/views has been deallocated and the message is sent to a deallocated instance. callback is of type id and conforms to the