I’m getting the following warning from Xcode 4.6.
.. used as the name of the previous parameter rather than as part of the selector
I know I can disable this warning, but I’d rather fix it.
I have 109 such warnings, so I’m obviously writing methods badly.
Here’s a couple of my methods.
+(NSString*)addFormatPrice:(double)dblPrice:(BOOL)booRemoveCurSymbol;
-(void)showHelpChoices:(UIView *)vw:(id)dg;
So, whats the correct way to write these methods ?
Your first method is declaring the selector
+addFormatPrice::. With spaces, it looks likeThis is invoked like
[NSString addFormatPrice:0.3 :YES].What you should do is actually give a name to the previous parameter, such as
Which would then be invoked like
[NSString addFormatPrice:0.3 removeCurSymbol:YES].