Http://www.tuicool.com/articles/ERvUbmR
1. If the return value of the method is newly created, the first word of the method name should be the return value type, unless there is a modifier such as localizedstring;
2. The noun representing the parameter type should be placed before the parameter.
+localizedstringwithformat: // localized string
3. Do not use the abbreviation STR, should use the full name of the full string.
The 4.Boolean attribute should be prefixed with the IS. If a method returns a non-attribute Boolean value, the has or is current prefix should be selected according to its function.
- isequaltostring; -Hasprefix;
Code |
Reviews |
Insertobject:atindex: |
Good |
Insert:at: |
not clear; At "What does the table show? |
Removeobjectatindex: |
Good |
Removeobject: |
That's right, because the law is? To remove an object as a parameter |
Remove |
not clear; What to remove?
|
OBJECTIVE-C Naming conventions