Guidelines for naming classes in Objective-C

后端 未结 4 2045
孤街浪徒
孤街浪徒 2020-12-18 07:48

First of all, there are no namespaces in Objective-C, that\'s one thing. But when a project increases in size and files, and UITableCellViews and other subviews are added, n

4条回答
  •  清酒与你
    2020-12-18 08:05

    The Coding Guidelines for Cocoa have some basic advice on naming conventions in Cocoa, but it mostly relates to method names. Generally, it's not unusual that names in Cocoa are pretty long.

    In your example, I would name the class either EEMSystemTableViewCell or simply EEMSystemCell. EEMSystemTableViewCellController would imply that the class is a controller although it's actually a view.

提交回复
热议问题