tar*_*mes 15 core-graphics ios
我有两个bezier路径,我想组合形成一个联合,这样我就可以抚摸整个外形.在我的例子中,它是一个带有尾部的语音气泡,所以虽然它不是一个复杂的形状,但实际上很难用一条路径创建它.
似乎没有用于创建联合的Core Graphics API.我错了吗?
如果我不是,有没有人知道可以处理这个的库?我搜索GitHub无济于事.
如果您正在使用闭合形状,UIBezierPath会这样做.
UIBezierPath *firstPath = [UIBezierPath bezierPath];
// build your path
UIBezierPath *secondPath = [UIBezierPath bezierPath];
// build your path
[firstPath appendPath:secondPath];
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6060 次 |
最近记录: |