Latest 1.0.1
Homepage https://github.com/LeoMobileDeveloper/LeoDanmakuKit
License MIT
Platforms ios 7.0, requires ARC
Authors

Version
License
Platform

Screenshot

LeoDanmakuKit

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.


中文文档请见我的博客

Latest podspec

{
    "name": "LeoDanmakuKit",
    "version": "1.0.1",
    "summary": "A Danmaku Kit For iOS",
    "description": "An iOS Danmaku Kit,you can easy add danmaku to your project,LeoDanmaku Kit handle the View and Model part for you",
    "homepage": "https://github.com/LeoMobileDeveloper/LeoDanmakuKit",
    "license": "MIT",
    "authors": {
        "LeoMobileDeveloper": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LeoMobileDeveloper/LeoDanmakuKit.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "LeoDanmakuKit": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This