Giter VIP home page Giter VIP logo

leodanmakukit's Introduction

LeoDanmakuKit

Version License Platform

##Screenshot

Requirements

  • ARC
  • iOS 7 +

Support

  • Storyboard
  • Auto limit buffer size
  • Random color or channel
  • High performance

Installation

LeoDanmakuKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LeoDanmakuKit"

Manual installation

You can also download the Example project and copy the Class floder into your project

Usage

#import "LeoDanmaku.h"

When you add a new danmaku,you first create a LeoDanmakuModel,for example,you may use the random factory method build in

NSArray * colors = @[[UIColor redColor],[UIColor blueColor],[UIColor greenColor],[UIColor whiteColor]];
LeoDanmkuModel * danmaku = [LeoDanmkuModel randomDanmkuWithColors:colors MaxFontSize:18 MinFontSize:15];
danmaku.text = self.textfiled.text;

Then

[self.danmakuView addDanmaku:danmaku];

##About remove

When you want the view remove from superview and get dealloced,do not forget to call

[self.danmakuView stop]

##Propertys

You can set the speed and other related property of LeoDanmakuChannelManager

@property (assign,nonatomic)CGFloat maxSpeed;//Default 100 points/s

@property (assign,nonatomic)CGFloat minSpeed;//Default 50 points/s

@property (assign,nonatomic)CGFloat minSpace;//Default 20

@property (assign,nonatomic)CGFloat inverval;//Default 0.25

@property (assign,nonatomic)NSInteger channelsCount;//Number of channels

Author

LeoMobileDeveloper, [email protected]

License

LeoDanmakuKit is available under the MIT license. See the LICENSE file for more info.


##中文文档请见我的博客

leodanmakukit's People

Contributors

leomobiledeveloper avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.