一个简单的带有动画旋转的方向箭头
要运行示例项目,首先克隆仓库,然后从示例目录中运行 pod install
。
箭头视图可以包含在 IB 中或以编程方式创建。它是一个简单的 UIView 子类,提供了旋转箭头到指定角度(度或弧度)的一些样式和方便的方法。
#import "NHArrowView.h"
@property(nonatomic,strong) IBOutlet NHArrowView *arrow;
self.arrow.headLength = 20.;
self.arrow.headWidth = 20.;
self.arrow.tailWidth = 7.;
[self.arrow animatedRotateToDegree: 135.];
要在其他项目中安装 NHArrowView,只需将以下行添加到 Podfile 中:
pod "NHArrowView", :git "[email protected]:JDRF/NHArrowView.git"
pod 的 Appledoc 可在 ./doc/html/index.html
找到
Nathaniel Hamming,[email protected]
NHArrowView 基于 MIT 许可证可用。有关更多信息,请参阅 LICENSE 文件。