iOS开源 - YJFavorEmitter:好用的点赞粒子发射器

jeri777 8年前
   <h2>YJFavorEmitter</h2>    <p> </p>    <p><img src="https://simg.open-open.com/show/c4290021ea56364f3d5b8af8e964fa39.gif"> <img src="https://simg.open-open.com/show/16ee48c299aa20fae68c00744b51cbf4.gif"> <img src="https://simg.open-open.com/show/340aef18b09dd8cf42a97faffedb7478.gif"></p>    <h2>English</h2>    <p>YJFavorEmitter is a favor cells emitter which is very nice and easy to use.</p>    <h2>Installation</h2>    <ol>     <li>Add pod 'YJFavorEmitter' to your Podfile.</li>     <li>Run pod install or pod update.</li>     <li>import .</li>    </ol>    <h2>Usage</h2>    <pre>  <code class="language-objectivec">init emitter  /**   _emitter = [YJFavorEmitter emitterWithFrame:CGRectMake(0, 0, 44, 44)                                 favorDisplayView:self.view                                            image:[UIImage imageNamed:@"heart.png"]                                   highlightImage:nil];</code></pre>    <p>generate cells</p>    <pre>  <code class="language-objectivec">/**   generate a number of cells     @param count cell's count   */  - (void)generateEmitterCellsForCellsCount:(int)count;</code></pre>    <p>set appearances of cells</p>    <pre>  <code class="language-objectivec">//  _emitter.cellImages = @[[UIImage imageNamed:@"heart"], [UIImage imageNamed:@"face"]];</code></pre>    <p>See demo for details.</p>    <h2>Requirements</h2>    <ul>     <li>ARC.</li>     <li>Requires iOS 6.0+.</li>     <li>Adapt to both iPhone & iPad.</li>    </ul>    <h2>License</h2>    <p>YJFavorEmitter is provided under the MIT license.See LICENSE file for details.</p>    <h2>Chiness</h2>    <p>YJFavorEmitter 是一个非常好用的点赞粒子发射器。</p>    <h2>安装</h2>    <ol>     <li>在 Podfile 中添加 pod 'YJFavorEmitter' 。</li>     <li>执行 pod install 或 pod update 。</li>     <li>导入 。</li>    </ol>    <h2>使用</h2>    <p>初始化发射器</p>    <pre>  <code class="language-objectivec">_emitter = [YJFavorEmitter emitterWithFrame:CGRectMake(0, 0, 44, 44)                                 favorDisplayView:self.view                                            image:[UIImage imageNamed:@"heart.png"]                                   highlightImage:nil];</code></pre>    <p>产生元素</p>    <pre>  <code class="language-objectivec">/**   释放元素     @param count 元素数量   */  - (void)generateEmitterCellsForCellsCount:(int)count;</code></pre>    <p>设置元素外观</p>    <pre>  <code class="language-objectivec">_emitter.cellImages = @[[UIImage imageNamed:@"heart"], [UIImage imageNamed:@"face"]];</code></pre>    <p>更多精彩请看 demo</p>    <h2>配置</h2>    <ul>     <li>ARC</li>     <li>该项目最低支持 iOS 6.0 。</li>     <li>同时支持 iPhone 和 iPad</li>    </ul>    <h2>许可证</h2>    <p>YJFavorEmitter 使用 MIT 许可证,详情见 LICENSE 文件。</p>    <p> </p>