2.9、规则:方法的每个参数必须有参数声明,尽可能对参数做出述
2016-07-19 本文已影响14人
半升多瑙河
示例:
-(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.