See the Code of C # to see Object-c code, always feel a little confused, record the method of OC usage: There are two types of methods in a class in OC: Instance methods (similar to non-static functions), class methods (similar to non-static functions). The instance method preceded by the (-) number indicates that the class method is indicated by (+), as you can see, preceded by a (-) sign, indicating that this is an instance method (the nil keyword equals our null). in OC, invoking a method is equivalent to passing a message, where the message refers to the method name and parameter. the dispatch of all the messages is dynamic, which shows the polymorphism of OC. the message is called by using square brackets. as in the following example, send Insertobject:atindex: This message to the MyArray object.
[MyArray insertobject:anobj Atindex:0];
This message delivery allows nesting
[[Myappobject GetArray] Insertobject:[myappobject Getobjecttoinsert] Atindex:0];
The method of OC Basic grammar