is it possible to invoke a delegate method of a class by code?
In my case I want to invoke the searchBar:textDidChange: method in my code!
If yes how would I do that ?
is it possible to invoke a delegate method of a class by code? In
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, if you know exactly how to cook the objects for its parameters.
It is just another method and you can call like
IMHO, I would say, in this case, searchBar is in better position to pass the objects, rather than you invoke yourself.