1、针对自己自定义的类:直接小写第一个字母

EventTableViewCell *eventTableViewCell; 

2、针对苹果类库中的类

     1)去头后小写第一个字母

CLLocationManager *locationManager;
NSManagedObjectContext *managedObjectContext;    

     2)用对象的用途名称+类名的核心进行命名

NSMutableArray *eventsArray;      //events + Array

UIBarButtonItem *addButton;       //add + Button

 参考代码:官方例子  TaggedLocations

相关文章:

  • 2022-01-07
  • 2021-06-22
  • 2021-09-16
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案