Configured out the issue.
Interaction logic is covered in core-plot library in CPLayerHostingView.m
file.
If you need to associate your ViewController
with CPLayerHostingView
, simply add property:
@interface CPLayerHostingView : UIView<CPPlotDataSource> {
@protected
CPLayer *hostedLayer;
CPTestAppScatterPlotController *touchController;
}
@property (nonatomic, readwrite, retain) CPLayer *hostedLayer;
@property (nonatomic, readwrite, retain) CPTestAppScatterPlotController *touchController;
Then in ViewController
use code:
CPLayerHostingView *hostingView = (CPLayerHostingView *)self.view;
hostingView.touchController = self;
So now you are able to run any controller's view methods from view.