Let’s begin with an example :
@interface myClass : NSObject {
NSString * title;
}
-(id)initWithTitle:(NSString*)title;
Compiler doesn’t like this because title init parameter hides myClass title ivar.
But i don’t like these options :
-(id)initWithTitle:(NSString*)t;
-(id)initWithTitle:(NSString*)myTitle;
-(id)initWithTitle:(NSString*)_title;
So that’s a poll: what’s your convention?
Some people prefer calling their ivars
_titleortitle_and then they can just usetitleas parameter name in functions. Or you just call itaTitleornewTitle. There is no right or wrong way to do it.