Error:
Automatic synthesis of properties will not synthesize the property " delegate". It will be implemented by its superclass, use @dynamicto confirm intent
Error code: @property (nonatomic, weak) id<JBBarChartViewDelegate> delegate;
Any help would be appreciated, thanks!
Here is my code:
#import "JBChartView.h"
@class JBBarChartView;
@protocol JBBarChartViewDataSource <JBChartViewDataSource>
@required
- (NSUInteger)numberOfBarsInBarChartView:(JBBarChartView *)barChartView;
@optional
- (UIView *)barChartView:(JBBarChartView *)barChartView barViewAtIndex:(NSUInteger)index;
@end
@protocol JBBarChartViewDelegate <JBChartViewDelegate>
@required
- (CGFloat)barChartView:(JBBarChartView *)barChartView heightForBarViewAtIndex:(NSUInteger)index;
@optional
- (void)barChartView:(JBBarChartView *)barChartView didSelectBarAtIndex:(NSUInteger)index touchPoint:(CGPoint)touchPoint;
- (void)barChartView:(JBBarChartView *)barChartView didSelectBarAtIndex:(NSUInteger)index;
- (void)didDeselectBarChartView:(JBBarChartView *)barChartView;
- (UIColor *)barChartView:(JBBarChartView *)barChartView colorForBarViewAtIndex:(NSUInteger)index;
- (UIColor *)barSelectionColorForBarChartView:(JBBarChartView *)barChartView;
- (CGFloat)barPaddingForBarChartView:(JBBarChartView *)barChartView;
@end
@interface JBBarChartView : JBChartView
@property (nonatomic, weak) id<JBBarChartViewDataSource> dataSource;
@property (nonatomic, weak) id<JBBarChartViewDelegate> delegate;
@property (nonatomic, assign) BOOL showsVerticalSelection;
@property (nonatomic, assign, getter=isInverted) BOOL inverted;
@end
source
share