最佳答案
使用 UIKit 很容易画出 破灭了线,所以:
CGFloat dashes[] = {4, 2};
[path setLineDash:dashes count:2 phase:0];
[path stroke];
有没有办法画一条真正的虚线?