Skip to content

wangzz/WZMarqueeView

Repository files navigation

#WZMarqueeView

WZMarqueeView is a marquee view used on iOS.It is a view expansion which contains a lable.We can custom the animation duration by setting the duration variable,The default duration value is 5.0f.

WZMarqueeView

#Getting Started

Using CocoaPods

1.Add the pod WZMarqueeView to your Podfile.

pod 'WZMarqueeView', '~> 2.0.0'

2.Run pod install from Terminal, then open your app's .xcworkspace file to launch Xcode.

3.#import WZMarqueeView.h wherever you want to use the API.

Manually from GitHub

1.Download the WZMarqueeView.h and WZMarqueeView.m files in th Source directory

2.Add both files to your Xcode project.

3.#import WZMarqueeView.h wherever you want to use the API.

#Example Usage

Example location

Check out the example project included in the repository. It contains a few demos of the API in use for various scenarios.

Usage

The way to create a WZMarqueeView is:

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];

#License MIT

About

A custom marquee lable for iOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published