Q:

Objective-C: call a method you just created

Simple question, as I am coming from another programming language. In Objective-C, lets say in a controller class I want to separate certain code into its own method, how do I call that method let's say, from viewLoad. As an example, let's say I create a method:

(void)checkIfInputCorrect
{
NSLog(@"text");
}

Now, i wanted to have in a delegate method, call this method. I tried [self checkIfInputCorrect] and get a warning saying Controller may not respond to -CheckIf...
I thought something like checkIfInputCorrect() would work that gives an error as well.
Basically how do you call a method?

A:

Add this to your .h file
- (void)checkIfInputCorrect;

Call it with:
[self checkIfInputCorrect];

