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.
我有关于在饼图圆圈的中间边缘设置 uilabel 的问题。
在我的饼图中有 2 部分。这两个部分都是动态变化的。我怎样才能在两个部分中获得中心位置,以便我可以将标签设置在特定部分的中心边缘。
谢谢你
问候, Keyur Bhalodiya
使用笛卡尔方程。
(x,y) = (rcos@,rsin@).
R 是饼图的半径。@ 是您需要找到一个点的角度。在你的情况下,你的馅饼片中间。