Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在图表轴上添加注释,但注释总是被轴剪裁,我无法将它们放置在刻度标签之外的轴上。
发生剪切的原因是注释放置在已clipsToBounds设置为的视图上YES。
clipsToBounds
YES
要改变这一点:
chart.canvas.glView.clipsToBounds = NO;
要使其能够编译,您必须导入SChartCanvas.h
SChartCanvas.h
#import <ShinobiControls/SChartCanvas.h>
希望有帮助
山姆