I am trying to reuse a method in my code which works if there is no condition like this:
-(void) declareWebView
I can call it later like so within any other method:
[self declareWebView];
but if I want to add a condition to it (i think that is what it is called) like so:
-(void) declareWebView:(UIInterfaceOrientation)orientation duration:(NSTimeInterval)duration
How do I then use it in the [self declareWebView]; ??
It gives me an error if I do the following:
[self declareWebView]; or [self declareWebView:]; //Second has the Column added to it.
Any would be great!
if you want to create a new method that implements the same code as the previous one this is my solution.
then you can still call your legacy “originalMethod” and now have a new method with a parameter.