Monday, 30 July 2012

#10 Objective C Method Pattern

  • Example:
- (BOOL) application: (UIApplication *) application didFinishLaunchingWithOptions:(NSDictionary *) launchOptions {
     
}
  • Description:
    • -  (Minus sign) : represents instance method, use + for class method
    • (BOOL) : Method return type
    • application: Method name first part
    • (UIApplication *) : parameter type first part
    • application : parameter variable name
    • didFinishLaunchingWithOptionsMethod name second part
    • (NSDictionary *)  : parameter type first second part
    • launchOptions : parameter variable name second part


No comments:

Post a Comment