15 lines
302 B
Objective-C
15 lines
302 B
Objective-C
// Class
|
|
[MyClass method:someParameter];
|
|
// or equivalently:
|
|
id foo = [MyClass class];
|
|
[foo method:someParameter];
|
|
|
|
// Instance
|
|
[myInstance method:someParameter];
|
|
|
|
// Method with multiple arguments
|
|
[myInstance methodWithRed:arg1 green:arg2 blue:arg3];
|
|
|
|
// Method with no arguments
|
|
[myInstance method];
|