the main function starts the main program event loop, generally you dont touch it.
the AppDelegate is where you want to put your own user code. If you generate a sample iphone project called Sample you will generate a class called SampleAppDelegate, it has a method called - (void)applicationDidFinishLaunching:(UIApplication *)application
which is the entry point i think you are looking for.
The SampleAppDelegate class implements a delegate (like an interface in c#) from the UIApplicationDelegateProtocol some of the methods are optional applicationDidFinishLaunching is not. This is generally where you set up your first view controller to do your inital screen.
Calling a method is done via message passing. If i have a class Tom with a method print i will initialise and call the method as so
Tom *tom = [[Tom alloc]init];
[tom print];
oh no where did my method arguemts go ? i feel lost without brackets.
If i have a method that prints page numbers and returns void i might define it as such
-(void)printPageNumbers:(int)pageNumber{
}
and call it like this
Tom *tom = [[Tom alloc]init];
[tom printPageNumbers:2];
multiple parameters
-(void)printPageNumbersFrom:(int)fromPageNumber toPageNumber:(int)toPageNumber{
}
and call it
Tom *tom = [[Tom alloc]init];
[tom printPageNumbersFrom:2 toPageNumber:5];
Its not a very type safe language, you can do some funky stuff like if you had an array of Tom objects, you could just send one of them a message. If at runtime it turned out that the object in the array wasn't a Tom you would get an exception.
[[myArray objectAtIndex:0] printPageNumbersFrom:2 toPageNumber:5];
Some comments on the above "so for every class there will be a .h file .m file .xib file" - this is incorrect. Each class has a '.h' and a '.m'.
A '.xib' is a view file, if your class has no ui element it wont have a '.xib'. the '.xib' called a nib file is not part of the class anyway, it just refers to it. (you link the two)
I found the learning curve fairly steep. Objective-C is not a hard language if you have C and some OO backing. However putting it all together with the ui can be a bit of a pain. Stanford uni has an online course which they have distributed through iTunes U ive watched them all they are worth the time, see here
enjoy the curve, im glad im not sitting where you are :)