Skip to content

Instantly share code, notes, and snippets.

@OiNutter
Created August 25, 2011 20:32
Show Gist options
  • Save OiNutter/1171831 to your computer and use it in GitHub Desktop.
Save OiNutter/1171831 to your computer and use it in GitHub Desktop.
OiNutter.co.uk - ObjectiveC+iOS - Method Definition Comparison
//Actionscript 3 - Method Definitions
//single argument methods
public function doubleNumber(double: number):double;
//multiple argument methods
public function multiplyNumberByAnotherNumber(double: number1,double: number2):double;
//Objective-C Method Definitions
//single argument method
- (double) doubleNumber:(double)number;
//mulitple argument method
- (double) multiplyNumber:(double)number1 byAnotherNumber:(double)number2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment