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.
我正在构建一个自定义 UIView,它在 drawRect: 方法中绘制自己的内容。我想用一种颜色描边一个 CGPath,然后将这个选择增加 1px 并用另一种颜色描边。有没有人想出一个很容易做到这一点的方法?
您可以尝试对图形上下文应用适当的缩放转换。