Remove 'and' from method name.
Objective-C coding conventions do not call for such conjunctions, AFAIK.
Showing
4 changed files
with
6 additions
and
4 deletions
| @@ -18,7 +18,9 @@ | @@ -18,7 +18,9 @@ | ||
| 18 | /** | 18 | /** |
| 19 | * Callback method that gets invoked when the user taps on a chart line key point. | 19 | * Callback method that gets invoked when the user taps on a chart line key point. |
| 20 | */ | 20 | */ |
| 21 | -- (void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex andPointIndex:(NSInteger)pointIndex; | 21 | +- (void)userClickedOnLineKeyPoint:(CGPoint)point |
| 22 | + lineIndex:(NSInteger)lineIndex | ||
| 23 | + pointIndex:(NSInteger)pointIndex; | ||
| 22 | 24 | ||
| 23 | /** | 25 | /** |
| 24 | * Callback method that gets invoked when the user taps on a chart bar. | 26 | * Callback method that gets invoked when the user taps on a chart bar. |
| @@ -216,7 +216,7 @@ | @@ -216,7 +216,7 @@ | ||
| 216 | if (distance <= 10.0) { | 216 | if (distance <= 10.0) { |
| 217 | [_delegate userClickedOnLineKeyPoint:touchPoint | 217 | [_delegate userClickedOnLineKeyPoint:touchPoint |
| 218 | lineIndex:p | 218 | lineIndex:p |
| 219 | - andPointIndex:(distance == distanceToP2 ? i + 1 : i)]; | 219 | + pointIndex:(distance == distanceToP2 ? i + 1 : i)]; |
| 220 | 220 | ||
| 221 | return; | 221 | return; |
| 222 | } | 222 | } |
| @@ -149,7 +149,7 @@ | @@ -149,7 +149,7 @@ | ||
| 149 | } | 149 | } |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | -- (void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex andPointIndex:(NSInteger)pointIndex{ | 152 | +- (void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex pointIndex:(NSInteger)pointIndex{ |
| 153 | NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex); | 153 | NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex); |
| 154 | } | 154 | } |
| 155 | 155 |
| @@ -135,7 +135,7 @@ lineChart.delegate = self; | @@ -135,7 +135,7 @@ lineChart.delegate = self; | ||
| 135 | //For DelegateMethod | 135 | //For DelegateMethod |
| 136 | 136 | ||
| 137 | 137 | ||
| 138 | --(void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex andPointIndex:(NSInteger)pointIndex{ | 138 | +-(void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex pointIndex:(NSInteger)pointIndex{ |
| 139 | NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex); | 139 | NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex); |
| 140 | } | 140 | } |
| 141 | 141 |
-
Please register or login to post a comment