core plot error?
- by senthilmuthu
hi,
i am using core plot framework,when i run following code in viewdidload gives crash.the view is as custom view...
graph = [(CPXYGraph *)[CPXYGraph alloc] initWithFrame:CGRectZero];
CPLayerHostingView *hostingView = (CPLayerHostingView *)self.view;
hostingView.hostedLayer = graph;**(gives error)**
what i have to do? any help please?