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
1 additions
and
1 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 | */ |
-
Please register or login to post a comment