WCYArrowRectView
2016-07-21 本文已影响26人
吴泉
带箭头的矩形View
可自定义属性(所有属性均可通过xib调整):圆角、画线宽度、虚线线宽、虚线间隔、边框颜色、填充颜色、箭头宽高、箭头位置、箭头偏移
箭头位置说明:
enum | 说明 |
---|---|
TopLeft | 上边居左,arrowOffset为距左边偏移量 |
TopMiddle | 上边居中,arrowOffset无效 |
TopRight | 上边居右,arrowOffset为距右边偏移量 |
BottomLeft | 下边居左,arrowOffset为距左边偏移量 |
BottomMiddle | 下边居中,arrowOffset无效 |
BottomRight | 下边居右,arrowOffset为距右边偏移量 |
LeftTop | 左边居上,arrowOffset为距上边偏移量 |
LeftMiddle | 左边居中,arrowOffset无效 |
LeftBottom | 左边居右,arrowOffset为距下边偏移量 |
RightTop | 右边居上,arrowOffset为距上边偏移量 |
RightMiddle | 右边居中,arrowOffset无效 |
RightBottom | 右边居下,arrowOffset为距下边偏移量 |
