Answer the question
In order to leave comments, you need to log in
How can I get the dealloc call event from a delegate?
Good evening.
There was such a problem: There is a Search controller and the API class is used for requests.
On the screen with the Search controller, I make an asynchronous request and exit this controller (i.e. it has dealloc), and then the API, seeing that it is impossible to pull the method through the Search delegate, gives me the alert I made.
The question is: Is it possible to somehow catch the dealloc call event from Search in the API?
The API can safely work with Search through a forwarded delegate.
If it is not clear what I wrote, then do not hesitate to ask clarifying questions. I am writing in the evening of a working day :).
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Why an alert if there is no delegate? I don't see a good reason for this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question