If I generate methods dynamically on runtime and then call them – how can I convince compiler that the class will respond to undeclared (generated) methods and make it not throw warnings?
Update in regard to answers
When I generate the methods – their name is not known at compile time. To give an example – if I have a view controller MyFooController and it’s initiated with method initWithFoo:(Foo*)foo, I’d be able to generate method like pushMyFooControllerWithFoo:(Foo *)foo for UINavigationController. Hence you notice that declaring such methods would be counter-productive.
This doesn’t directly answer your question, but if I was generating method names (presumably from strings), I would call them using the string names, hence bypassing the compiler warnings.
That way you are responsible for the validity of the generated method names.