Skip to content

CGPath 和 UIBezierPath() 区别 #140

@tbfungeek

Description

@tbfungeek
  • CGPath是CoreGraphics库的类,而UIBezierPath是UIKit中的类
  • UIBezierPath是对CGPath的一种封装,可以很方便在二者之间进行转换,CGPath相对而言更底层,在速度性能上较UIBezierPath高,并且它具备UIBezierPath不具备的更高级的功能
  • 但是UIBezierPath在使用上十分易用,所以除非在万不得己的情况下一般推荐使用UIBezierPath。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions