草庐IT

ios - 用 UIBezierPath 绘制六边形(先点)

我正在尝试使用UIBezierPath和ZEPolygon绘制六边形,效果很好,但我的六边形顶部是平的。我已尽一切努力让它从中间的一个点开始绘制,包括在路径上进行180度变换,但其他一切都失败了。ThisishowitlooksnowThisishowiwouldlikeittolook我的代码如下UIImageView*maskedImageView=[[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"image.png"]];UIBezierPath*nonagon=[UIBezierPathbezierPathWithPol