instance variable/ method argument naming in Objective C

前端 未结 5 1141
醉话见心
醉话见心 2020-12-08 11:21

What conventions are people here following for naming of instance variables and method arguments - particularly when method arguments are used to set ivars (instance variabl

5条回答
  •  时光取名叫无心
    2020-12-08 12:13

    To complete all known Objective-C styleguides here is the google version. What they do is to add an underscore after the the member varname. For instance BOOL isActive_;.
    So make a choice and stick with it. I also prefer the "_" prefix for my apps.

提交回复
热议问题