YJFavorEmitter
一个非常好用的点赞粒子发射器
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



<br>
English
YJFavorEmitter is a favor cells emitter which is very nice and easy to use.
Installation
- Add pod 'YJFavorEmitter' to your Podfile.
- Run pod install or pod update.
- import <YJFavorEmitter/YJFavorEmitter.h>.
Usage
objcinit 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 是一个非常好用的点赞粒子发射器。
安装
- 在 Podfile 中添加
pod 'YJFavorEmitter'。 - 执行
pod install或pod update。 - 导入 <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.
This article is auto-generated from SplashZ/YJFavorEmitter via the GitHub API.Last fetched: 6/24/2026
