0
UIImageView를 Core Plot 프레임 워크의 CPTBarPlot 레이어에 추가 할 수 있습니까? 나는 다음을 시도하지만, 그것은 단지 그래프의 코너에 이미지를 생성하고 내가 술집에가되고 싶어요 :어떻게 Core Plot CPTBarPlot 레이어에 이미지를 추가 할 수 있습니까?
NSString *bundlePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"wrong.png"];
UIImage *image = [[UIImage alloc] initWithContentsOfFile:bundlePath];
UIImageView *incorrect = [[UIImageView alloc] initWithFrame:CGRectMake(plot.bounds.origin.x,plot.bounds.origin.y,14,14)];
[incorrect setImage:image];
[plot addSublayer:incorrect.layer];
[image release];
[incorrect release];
감사합니다. 나를 올바른 방향으로 가리켰다. – Skeep