测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
Released最后发布 | 2016年11月 |
由 SplashZ--description=tudo mac pro 维护。
YJFavorEmitter 是一个非常好用的点赞粒子发射器。
init emitter
/**
_emitter = [YJFavorEmitter emitterWithFrame:CGRectMake(0, 0, 44, 44)
favorDisplayView:self.view
image:[UIImage imageNamed:@"heart.png"]
highlightImage:nil];
生成元素
/**
generate a number of cells
@param count cell's count
*/
- (void)generateEmitterCellsForCellsCount:(int)count;
设置元素外观
//
_emitter.cellImages = @[[UIImage imageNamed:@"heart"], [UIImage imageNamed:@"face"]];
详细信息请参阅示例。
YJFavorEmitter提供在MIT许可证下。详细信息请参阅LICENSE文件。
YJFavorEmitter 是一个非常好用的点赞粒子发射器。
pod 'YJFavorEmitter'
。pod install
或 pod update
。初始化发射器
_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"]];
更多信息请查看演示。
iOS 6.0
。YJFavorEmitter 使用 MIT 许可证,详情见 LICENSE 文件。