【问题标题】:Empty CGMutablePathRef paths?空 CGMutablePathRef 路径?
【发布时间】:2012-11-20 09:33:26
【问题描述】:

我有办法从 CGMutablePathRef 中删除所有路径并得到一个清晰的路径吗?

我正在绘制一条路径,我希望将其清空以供重复使用?

【问题讨论】:

    标签: ios cgpath quartz-core


    【解决方案1】:

    我不这么认为,只需发布​​它并创建一个新的 - 无论如何应该更快。

    CGPathRelease(pathref);
    pathref = CGPathCreateMutable();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-04
      • 1970-01-01
      • 2018-03-18
      • 1970-01-01
      • 2013-02-28
      相关资源
      最近更新 更多