Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在编写诸如 git commit 描述之类的内容时,是否有一个公认的约定/语法来引用给定类上的特定方法?
也许类似(NSArray *) -count:或类似的东西?
(NSArray *) -count:
我一直厌倦写“yyy类的xxx方法”
一个常见的符号:
- [NSArray count]
对于类方法:
+ [NSMutableString stringWithCapacity:]
对于协议:
- [id <UITableViewDataSource> tableView:cellForRowAtIndexPath:]