1
에 참조 할 수 없습니다나는 산점도보기를 추가하지만 내가 같은 산점도 클래스가 페이지
@interface myCPTScatterPlot : UIView <CPTPlotDataSource , CPTScatterPlotDelegate , CPTScatterPlotDataSource>
@property (nonatomic, assign) CPTGraphHostingView *hostView;
-(void) initAll;
-(void) configureHost;
-(void) configureGraph;
-(void) configurePlots;
-(void) configureAxes;
@end
을 내가 모든 기능을 구성 구현. 그래프를 만들어 호스트에 추가했습니다 : self.hostView.hostedGraph = graph;
myCPTScatterPlot.mm 파일을 잘 구현했습니다.
내가 좋아하는 myCPTScatterPlot.mm 파일에 initWithframe 기능이 마지막으로
-(id)initWithFrame:(CGRect)frame {
if ((self = [super initWithFrame:frame])) {
hostView = [(CPTGraphHostingView *) [CPTGraphHostingView alloc] initWithFrame:frame];
}
return self;
}
을, 나는 pageView.mm 파일을하고 난
[(UIView *)page performSelectorOnMainThread:@selector(addSubview:) withObject:firstScatterPlot waitUntilDone:YES];
이 내 page.view에 모든 페이지 객체를 추가
하지만 난 내 차트 :(
내가 무엇을 놓치고 볼 수없는 이유는 무엇입니까?
아라 마마 란 :) –