I am new to Objective-C and iPhone Development and while I am familiar with pointers to an extent, I often see code that includes things like this:
- (BOOL)application:(UIApplication *)application...
When you have the * inside the ( ) like that what does that mean?
Thanks!
It’s a instance method (
-means instance method,+is class method) that returnsBOOLnamedapplicationand it takes an argument of a pointer toUIApplicationnamedapplication.The
(UIApplication *)just means a pointer to aUIApplicationclass.