WZMarqueeView 2.0.0

WZMarqueeView 2.0.0

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最后发布2016年11月

王中周维护。



  • 王中周

WZMarqueeView 是在 iOS 上使用的滚动视图。它是一个包含 lable 的视图扩展。我们可以通过设置 duration 变量来自定义动画持续时间,默认 duration 值为 5.0f

WZMarqueeView

入门

使用 CocoaPods

1. 将 pod WZMarqueeView 添加到您的 Podfile

pod 'WZMarqueeView', '~> 2.0.0'

2. 从终端运行 pod install,然后打开您的应用 .xcworkspace 文件以启动 Xcode。

3. 在您想使用 API 的位置导入 #import WZMarqueeView.h

手动从 GitHub 安装

1. 下载 源目录 中的 WZMarqueeView.hWZMarqueeView.m 文件。

2. 将这两个文件添加到您的 Xcode 项目中。

3. 在您想使用 API 的位置导入 #import WZMarqueeView.h

示例用法

示例位置

查看存储库中包含的 example 项目。它包含使用 API 在各种场景下的几个演示。

用法

创建 WZMarqueeView 的方式是

WZMarqueeView *marqueeView = [[WZMarqueeView alloc] initWithFrame:CGRectMake(60, 100, 200, 40)];
marqueeView.lable.text = @"Good good study day day up.It is a WZMarqueeView demo";
marqueeView.duration = 7.0f;
marqueeView.backgroundColor = [UIColor whiteColor];
[marqueeView showInView:self.view];

许可证

MIT