Latest 1.0.4
Homepage https://github.com/SplashZ/YJFavorEmitter
License MIT
Platforms ios 6.0, requires ARC
Authors

[CocoaPods](http://cocoapods.org/?q= YJFavorEmitter) 
[CocoaPods](http://cocoapods.org/?q= YJFavorEmitter) 
Support 
Travis-CI 
License MIT

demogif
demogif
demogif

English

YJFavorEmitter is a favor cells emitter which is very nice and easy to use.

Installation

  1. Add pod ‘YJFavorEmitter’ to your Podfile.
  2. Run pod install or pod update.
  3. import <YJFavorEmitter/YJFavorEmitter.h>.

Usage


init emitter
/**
 _emitter = [YJFavorEmitter emitterWithFrame:CGRectMake(0, 0, 44, 44)
                               favorDisplayView:self.view
                                          image:[UIImage imageNamed:@"heart.png"]
                                 highlightImage:nil];

generate cells


/**
 generate a number of cells

 @param count cell's count
 */
- (void)generateEmitterCellsForCellsCount:(int)count;

set appearances of cells

//
_emitter.cellImages = @[[UIImage imageNamed:@"heart"], [UIImage imageNamed:@"face"]];

See demo for details.

Requirements

  • ARC.
  • Requires iOS 6.0+.
  • Adapt to both iPhone & iPad.

License

YJFavorEmitter is provided under the MIT license.See LICENSE file for details.

Chiness

YJFavorEmitter 是一个非常好用的点赞粒子发射器。

安装

  1. 在 Podfile 中添加 pod 'YJFavorEmitter'
  2. 执行 pod installpod update
  3. 导入 <YJFavorEmitter/YJFavorEmitter.h>。

使用

初始化发射器


_emitter = [YJFavorEmitter emitterWithFrame:CGRectMake(0, 0, 44, 44)
                               favorDisplayView:self.view
                                          image:[UIImage imageNamed:@"heart.png"]
                                 highlightImage:nil];

产生元素


/**
 释放元素

 @param count 元素数量
 */
- (void)generateEmitterCellsForCellsCount:(int)count;

设置元素外观


_emitter.cellImages = @[[UIImage imageNamed:@"heart"], [UIImage imageNamed:@"face"]];

更多精彩请看 demo

配置

  • ARC
  • 该项目最低支持 iOS 6.0
  • 同时支持 iPhone 和 iPad

许可证

YJFavorEmitter 使用 MIT 许可证,详情见 LICENSE 文件。

Latest podspec

{
    "name": "YJFavorEmitter",
    "platforms": {
        "ios": "6.0"
    },
    "version": "1.0.4",
    "summary": "A nice favar emitter",
    "homepage": "https://github.com/SplashZ/YJFavorEmitter",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "splashz": "[email protected]"
    },
    "source": {
        "git": "https://github.com/SplashZ/YJFavorEmitter.git",
        "tag": "1.0.4"
    },
    "requires_arc": true,
    "source_files": "YJFavorEmitter/*.{h,m}",
    "public_header_files": "YJFavorEmitter/YJFavorEmitter.h"
}

Pin It on Pinterest

Share This