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