GitPedia

YJFavorEmitter

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

From SplashZ·Updated November 22, 2022·View on GitHub·

YJFavorEmitter ==================         The project is written primarily in Objective-C, distributed under the MIT License license, first published in 2016. Key topics include: animation, emitter, favor.

YJFavorEmitter

CocoaPods 
CocoaPods 
Support 
Travis-CI 
License MIT

demogif
demogif
demogif
<br>

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

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

generate cells

objc
/** generate a number of cells @param count cell's count */ - (void)generateEmitterCellsForCellsCount:(int)count;

set appearances of cells

objc
// _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>。

使用

初始化发射器

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

产生元素

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

设置元素外观

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

更多精彩请看 demo

配置

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

许可证

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

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from SplashZ/YJFavorEmitter via the GitHub API.Last fetched: 6/24/2026