Does naming an instance variable with underscore as a prefix have any side effects in Cocoa (Objective-C)? [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How does an underscore in front of a variable in a cocoa objective-c class work? I found that in Apple's frameworks' header files , Apple name instance variable with prefix underscope inside a class interface. like the _delegate instance below: @interface ClassName : NSObject { id _delegate; } @end But is there any side effects if we follow this naming convention when defining our own instance variable? I've