示例:
-(void)sendAction:(SEL)aSelectortoObject:(id)anObjectforAllCells:(BOOL)flag; Right.
-(void)sendAction:(SEL)aSelector :(id)anObject :(BOOL)flag Wrong. ;
- (id)viewWithTag:(NSInteger)aTag; Right.
- (id)taggedView:(int)aTag; Wrong.
示例:
-(void)sendAction:(SEL)aSelectortoObject:(id)anObjectforAllCells:(BOOL)flag; Right.
-(void)sendAction:(SEL)aSelector :(id)anObject :(BOOL)flag Wrong. ;
- (id)viewWithTag:(NSInteger)aTag; Right.
- (id)taggedView:(int)aTag; Wrong.
本文标题:2.9、规则:方法的每个参数必须有参数声明,尽可能对参数做出述
本文链接:https://www.haomeiwen.com/subject/eawmjttx.html
网友评论