Let's start with an example:
@interface myClass : NSObject {
NSString * title;
}
-(id)initWithTitle:(NSString*)title;
The compiler does not like this because the init init parameter hides myClass title ivar.
But I do not like these options:
-(id)initWithTitle:(NSString*)t;
-(id)initWithTitle:(NSString*)myTitle;
-(id)initWithTitle:(NSString*)_title;
So to the survey: what is your convention?
source
share