I
I
Ivan Gaidamakin2016-08-01 17:35:13
Objective-C
Ivan Gaidamakin, 2016-08-01 17:35:13

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

1 answer(s)
M
ManWithBear, 2016-08-01
@ManWithBear

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 question

Ask a Question

731 491 924 answers to any question