gpt4 book ai didi

ios - 计算 UIBezierPath 的宽度和高度?

转载 作者:可可西里 更新时间:2023-11-01 06:18:49 24 4
gpt4 key购买 nike

我正在创建许多 umorphic UIBezierPaths。我需要计算 UIBezierPath 的宽度和高度。我该怎么做?

最佳答案

您可以通过以下代码行获取高度。

myPath.bounds.size.height;

对于宽度...

myPath.bounds.size.width;

关于ios - 计算 UIBezierPath 的宽度和高度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12020804/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com