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.