Make delegate methods optional
They should be optional methods so we can get rid of warning when only using one kind of these chart.
Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | #import <Foundation/Foundation.h> | 9 | #import <Foundation/Foundation.h> |
| 10 | 10 | ||
| 11 | @protocol PNChartDelegate <NSObject> | 11 | @protocol PNChartDelegate <NSObject> |
| 12 | - | 12 | +@optional |
| 13 | /** | 13 | /** |
| 14 | * Callback method that gets invoked when the user taps on the chart line. | 14 | * Callback method that gets invoked when the user taps on the chart line. |
| 15 | */ | 15 | */ |
| @@ -27,4 +27,4 @@ | @@ -27,4 +27,4 @@ | ||
| 27 | */ | 27 | */ |
| 28 | - (void)userClickedOnBarAtIndex:(NSInteger)barIndex; | 28 | - (void)userClickedOnBarAtIndex:(NSInteger)barIndex; |
| 29 | 29 | ||
| 30 | -@end | 30 | +@end |
-
Please register or login to post a comment