27 个 iOS 开源库,让你的开发坐上火箭吧
<blockquote><p>来源:http://www.oschina.net/news/75360/27-ios-opensource?from=20160724</p><p><br></p><p>本文翻译自Medium,原作者是Paweł Białecki,查看<a href="https://medium.com/app-coder-io/27-ios-open-source-libraries-to-skyrocket-your-development-301b67d3124c" target="_blank">原文</a></p><p><span style="font-size: 10pt; line-height: 1.6; font-weight: bold;">你不会想错过他们,真的。</span></p><p><strong>我爱开源。</strong></p><p>并且我喜欢开发者们,把他们宝贵的私人时间用来创造神奇的东西,然后他们会和其他人分享并且不求回报。<strong>开源作者和贡献者,你们是最帅的。</strong>感谢你们一直以来的工作。</p></blockquote><hr><p><strong>所以,因为<a href="http://iosappsweekly.com/" target="_blank">我是一个分类整理狂</a>,这是我从iOS开源库中选出的<a href="https://github.com/stars/ecler" target="_blank">最喜欢的</a>。</strong>这些项目的顺序都是随机的,全部都很酷。</p><p>绝大部分库是支持<a href="https://cocoapods.org/" target="_blank">CocoaPods</a>的,所以把它们添加到你的Xcode项目中轻而易举。</p><p><strong>文章的尾部你会看到一个太长不看的版本</strong>——一个简单的列表,只有标题和到项目的链接。如果你发现这篇文章是有用的,<strong>把它和你的iOS开发者兄弟们分享。好东西需要被传播。</strong></p><h3>1. DZNEmptyDataSet</h3><p>这本应该是iOS中一个标准、内置的解决空table和collection view的方式。默认的如果你的table view是空的,屏幕就是空的。但这不是你能提供的最好的用户体验。</p><p>用了这个库,你只需要遵循一系列协议,iOS会优雅地接管你的collection view并且会正确、好看地显示给用户信息。很明显,每个iOS项目都应该采用。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_0MpD.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-af27c8ff96c227a5.png?imageMogr2/auto-orient/strip" data-image-slug="af27c8ff96c227a5" data-width="753" data-height="528" class="imagebubble-image"><br></p><p>这是完全可自定义的。</p><p><strong>CocoaPods:</strong></p><p>pod ‘DZNEmptyDataSet’</p><p><strong><a href="https://github.com/dzenbot/DZNEmptyDataSet" target="_blank">GitHub</a></strong></p><h3>2. PDTSimpleCalendar</h3><p>你的app是否需要一个简单、好看并且有效的日历组件呢?</p><p>现在你有了——PDTSimpleCalendar很有可能是最棒的iOS日历组件。有很多方式来自定义它,逻辑有效而且好看。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_pXnT.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-ebee361378a2aae9.png?imageMogr2/auto-orient/strip" data-image-slug="ebee361378a2aae9" data-width="612" data-height="564" class="imagebubble-image"><br></p><p><strong>CocoaPods:</strong></p><p>pod 'PDTSimpleCalendar'<br></p><p><strong><a href="https://github.com/jivesoftware/PDTSimpleCalendar" target="_blank">GitHub</a></strong></p><h3>3. MagicalRecord</h3><p>他们说,Core
Data很简单。他们说,它很好很简单。哈哈,你是认真的吗,苹果?一顿陈词滥调的代码被添加到每个项目里,这真的不够优雅和简单。更不用说添加、移除和
更新很多实体,保存上下文,为不同的环境创建不同的Core Data栈,等等等等。我当然很喜欢Core
Data,但是苹果真的可以通过一个简单的好方法来简化它——MagicalRecord方法。</p><p>MagicalRecord的工作就像一个Core Data的包装,并且向开发者隐藏了所有无关的东西。如果你曾经用过活跃纪录模式(例如Ruby on Rails),那你已经掌握它了。如果你在app里用Core Data的话真的真心推荐这个库。</p><p><strong>CocoaPods:</strong><br></p><p>pod 'MagicalRecord'</p><p><strong><a href="https://github.com/magicalpanda/MagicalRecord" target="_blank">GitHub</a></strong></p><h3>4. Chameleon</h3><p>如果你读到了这一点,你是一个很好的程序员,而不是一个设计师。这就是为你准备的。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_5cUr.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-e4b3a251abcfb829.png?imageMogr2/auto-orient/strip" data-image-slug="e4b3a251abcfb829" data-width="800" data-height="428" class="imagebubble-image"><br></p><p>Chameleon是iOS的一个颜色框架。它用好看、摩登的扁平化颜色扩展了UIColor。它也给了我们能力来创建调色板,里面是我们自己定义的颜色。它可以做很多其他事,探索readme文件。如果你想要好看的应用程序,快把这个库加到你的项目里吧。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_LThw.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-ae8e84d56f1dee43.png?imageMogr2/auto-orient/strip" data-image-slug="ae8e84d56f1dee43" data-width="725" data-height="357" class="imagebubble-image"><br></p><p>Chameleon基础扁平化颜色</p><p><strong>CocoaPods:</strong><br></p><p>pod 'ChameleonFramework'</p><p><strong><a href="https://github.com/ViccAlexander/Chameleon" target="_blank">GitHub</a></strong></p><h3>5. Alamofire</h3><p>Alamofire是一个用Swift写的优雅的网络库。你曾经用过AFNetworking吗?ALamofire是它的弟弟。年轻也更有才华,当然啦(AFNetworking是用Objective-C写的)。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_Wuif.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-2b844c334358151f.png?imageMogr2/auto-orient/strip" data-image-slug="2b844c334358151f" data-width="850" data-height="250" class="imagebubble-image"><br></p><p>需要做网络相关比如下载、上传、获取JSON等等?Alamofire是为你准备的。GitHub上8000人的选择不会错。</p><p><strong>CocoaPods:</strong><br></p><p>pod 'MagicalRecord'</p><p><strong><a href="https://github.com/Alamofire/Alamofire" target="_blank">GitHub</a></strong></p><h3>6. TextFieldEffects</h3><p>你不觉得标准的UITextField有一点无聊吗?我也是——所以对TextFieldEffects说hello吧!我不会写太多,我只会展示你一些这个库可以做的例子:</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_bSeW.gif" data-original-src="http://upload-images.jianshu.io/upload_images/861914-b8a06fcacf854990.gif?imageMogr2/auto-orient/strip" data-image-slug="b8a06fcacf854990" data-width="370" data-height="150" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_KPlf.gif" data-original-src="http://upload-images.jianshu.io/upload_images/861914-39e9f3837da205ec.gif?imageMogr2/auto-orient/strip" data-image-slug="39e9f3837da205ec" data-width="370" data-height="150" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_3AhO.gif" data-original-src="http://upload-images.jianshu.io/upload_images/861914-53c7ac1a55c85913.gif?imageMogr2/auto-orient/strip" data-image-slug="53c7ac1a55c85913" data-width="370" data-height="150" class="imagebubble-image"><br></p><p>是的,<strong>这些就是简单的易用的控制器。</strong>你甚至可以用storyboard里的IBDesignable!</p><p>不幸的是这个库不支持CocoaPods(如果你来自未来,而这在一些时间之前改变了的话,<a href="https://twitter.com/pawel_bialecki" target="_blank">请在Twitter上让我知道</a>),但它支持Carthage。你也可以简单的从GitHub下载项目,并且把它添加到你的workspace里。</p><p><strong>Carthage:</strong></p><p>github "raulriera/TextFieldEffects"<br></p><p><strong><a href="https://github.com/raulriera/TextFieldEffects" target="_blank">GitHub</a></strong></p><h3>7. GPUImage</h3><p>你曾经创建过一个摄像机app吗?<strong>如果没有,看完这个库你就肯定会的。</strong></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080336_Rmlz.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-9d701a51ce365975.png?imageMogr2/auto-orient/strip" data-image-slug="9d701a51ce365975" data-width="240" data-height="240" class="imagebubble-image"><br></p><p>GPUImage可能性</p><p>GPUImage提供我们一个GPU-accelerated摄像头效果(图像和视频都可以),熊熊燃烧般的速度。App Store里有几百个app使用这个库——其中就有我的一个:</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_qDrg.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-8de2b71fcfb34698.png?imageMogr2/auto-orient/strip" data-image-slug="8de2b71fcfb34698" data-width="640" data-height="135" class="imagebubble-image"><br></p><p>我的一个app中用的GPUImage</p><p>GitHub上8869个收藏并且还在持续增加。</p><p><strong>CocoaPods:</strong></p><p>pod 'GPUImage'<br></p><p><strong><a href="http://github.com/BradLarson/GPUImage" target="_blank">GitHub</a></strong></p><h3>8. iRate</h3><p>在App Store获得更多评价最好的方式是什么?我没有明确的数据来回答这个问题,但如果要我来猜测的话,我会说只要<strong>简单的询问用户</strong>就可以了。也许这是一个老套的方式——大部分开发者现在创建自定义的app内置提醒——但如果你没有时间或者不想所有事都从头做起,用iRate比不用要好。并且这就是iRate——<strong>一个小库,你包含在你的项目里并且忘记询问用户去评价了——iRate会自动替你完成,在合适的时间里。</strong></p><p><strong>CocoaPods:</strong></p><p>pod 'iRate'<br></p><p><strong><a href="https://github.com/nicklockwood/iRate" target="_blank">GitHub</a></strong></p><h3>9. GameCenterManager</h3><p>喜欢或讨厌一个人,在这种情况下管理Game Center非常简单,只需要一点我们最著名的反模式的帮助(你的游戏里只有Game Center,对吧?)</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_S5eP.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-894ebfa1ebd5fa6c.png?imageMogr2/auto-orient/strip" data-image-slug="894ebfa1ebd5fa6c" data-width="725" data-height="100" class="imagebubble-image"><br></p><p>诚实地说,在iOS里香草管理Game Center并不是那么困难,<strong>但用这个库就是简单和快速。</strong>更好的是好的敌人。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_3DXZ.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-29186e49d73c75bb.png?imageMogr2/auto-orient/strip" data-image-slug="29186e49d73c75bb" data-width="1000" data-height="646" class="imagebubble-image"><br></p><p>我的一个游戏里就用了它,真是一个愉悦的体验。</p><p><strong>CocoaPods:</strong></p><p>pod 'GameCenterManager'<br></p><p><strong><a href="https://github.com/nihalahmed/GameCenterManager" target="_blank">GitHub</a></strong></p><h3>10. PKRevealController 2</h3><p>这是一个真正的宝石,<strong>我最喜欢的iOS控件之一。</strong>PKRevealController是一个可滑动的侧边栏(向左、向右或者都可以),用你的手指来滑动(或者只通过点击按钮,但这样就没有滑动酷了)。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_jTJn.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-62a54d9e488396b1.png?imageMogr2/auto-orient/strip" data-image-slug="62a54d9e488396b1" data-width="722" data-height="410" class="imagebubble-image"><br></p><p>我使用过一些其它库,提供这种空间,PKRevealController是最好的。设置起来很简单,高度可自定义,手势识别非常非常好。它可以在iOS SDK中包含作为一个标准空间,真的。</p><p><strong>CocoaPods:</strong></p><p>pod 'PKRevealController'<br></p><p><strong><a href="https://github.com/pkluz/PKRevealController" target="_blank">GitHub</a></strong></p><h3>11. SlackTextViewController</h3><p>你曾经用过Slack iOS app吗?如果你在一个更大的软件公司工作的话,很有可能回答是。对于没有这么回答的人——Slack很坚硬。Slack的iOS app也是,特别是对于很好的、自定义的文本输入控件…就是你现在有的——你的app里可以用的代码!</p><p><strong>自增长文本域?对的。手势识别,自动填充,多媒体粘贴?对的。简单的易用的?对的。</strong>你还可能需要什么?</p><p><strong>CocoaPods:</strong></p><p>pod 'SlackTextViewController'<br></p><p><strong><a href="https://github.com/slackhq/SlackTextViewController" target="_blank">GitHub</a></strong></p><h3>12. RETableViewManager</h3><p>RETableViewManager会帮助你动态创建和管理你的table view,都用代码。它提供我们预先定义好的cell(布尔型、文本、日期等等。——看下面的截图),你也可以创建你的自定义视图,和默认的一起使用。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_Ve6W.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-e03b920c0376370b.png?imageMogr2/auto-orient/strip" data-image-slug="e03b920c0376370b" data-width="1000" data-height="830" class="imagebubble-image"><br></p><p>左侧截图好老套!</p><p>这些你都可以在storybard里做而不需要这个库的帮忙,但有的时候代码比可视化编辑器更简单。</p><p><strong>CocoaPods:</strong></p><p>pod 'RETableViewManager'<br></p><p><strong><a href="https://github.com/romaonthego/RETableViewManager" target="_blank">GitHub</a></strong></p><h3>13. PermissionScope</h3><p>有用的库,通过在询问用户<strong>之前</strong>提示用户需要系统许可带来更好的用户体验。高度可接受程度->更多用户活动使用app->更好的留存->更好的数据->更多的下载。被高度推荐的pod。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_KwR3.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-ee80c097dad4e660.png?imageMogr2/auto-orient/strip" data-image-slug="ee80c097dad4e660" data-width="374" data-height="666" class="imagebubble-image"><br></p><p><strong>CocoaPods:<br></strong></p><p>pod 'PermissionScope'</p><p><strong><a href="https://github.com/nickoneill/PermissionScope" target="_blank">GitHub</a></strong></p><h3>14. SVProgressHUD</h3><p>这个图片正在被正确的加载,不会等很久也不需要刷新页面。<strong>这就是SVProgressHUD在你的app里看起来的样子。</strong>如果你需要自定义等待指示,这里就有一个(很有可能就是最好的)。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_GRlW.gif" data-original-src="http://upload-images.jianshu.io/upload_images/861914-8c9e0f980e040354.gif?imageMogr2/auto-orient/strip" data-image-slug="8c9e0f980e040354" data-width="340" data-height="314" class="imagebubble-image"><br></p><p><strong>CocoaPods:</strong><br></p><p>pod 'SVProgressHUD'</p><p><strong><a href="https://github.com/TransitApp/SVProgressHUD" target="_blank">GitHub</a></strong></p><h3>15. FontAwesomeKit</h3><p><strong>Font Awesome很酷</strong>,用这个库你可以轻松地添加字体到你的项目里,并且在多种方式里使用它。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_YroV.jpg" data-original-src="http://upload-images.jianshu.io/upload_images/861914-4f6f218e82209ca1.jpg?imageMogr2/auto-orient/strip" data-image-slug="4f6f218e82209ca1" data-width="1000" data-height="405" class="imagebubble-image"><br></p><p><strong>CocoaPods:</strong><br></p><p>pod 'FontAwesomeKit'</p><p><strong><a href="https://github.com/PrideChung/FontAwesomeKit" target="_blank">GitHub</a></strong></p><h3>16. SnapKit</h3><p>喜欢auto layout?你应该!</p><p>至少在storyboard里创建的时候。</p><p>用代码创建constraints是痛苦的,如果没有帮助的话,但幸运的是SnapKit在这里,使用它你可以轻松写你的constraints,声明方式。看看吧。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_C87F.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-244dd474b5c09563.png?imageMogr2/auto-orient/strip" data-image-slug="244dd474b5c09563" data-width="728" data-height="197" class="imagebubble-image"><br></p><p><strong>CocoaPods:</strong><br></p><p>pod 'SnapKit'</p><p><strong><a href="https://github.com/SnapKit/SnapKit" target="_blank">GitHub</a></strong></p><h3>17. MGSwipeTableCell</h3><p>另一个UI组件,在很多app里都常见,苹果应该考虑在iOS标准库里加入类似的东西。<strong>可滑动的table cell</strong>,这是这个pod最好的描述。最好的一个。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_RQHw.gif" data-original-src="http://upload-images.jianshu.io/upload_images/861914-e89287c195c838da.gif?imageMogr2/auto-orient/strip" data-image-slug="e89287c195c838da" data-width="478" data-height="176" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_F1yy.gif" data-original-src="http://upload-images.jianshu.io/upload_images/861914-4d356408526b4bb7.gif?imageMogr2/auto-orient/strip" data-image-slug="4d356408526b4bb7" data-width="478" data-height="176" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_s0S2.gif" data-original-src="http://upload-images.jianshu.io/upload_images/861914-142a679117603fed.gif?imageMogr2/auto-orient/strip" data-image-slug="142a679117603fed" data-width="478" data-height="176" class="imagebubble-image"><br></p><p>这些只是3个动画种类,还有很多。探索readme文件。</p><p><strong>CocoaPods:</strong><br></p><p>pod 'MGSwipeTableCell'</p><p><strong><a href="https://github.com/MortimerGoro/MGSwipeTableCell" target="_blank">GitHub</a></strong></p><h3>18. Quick</h3><p>Swift里的单元测试,给Swift(好吧,要给Objective-C),和Xcode融为一体。如果你是一个Objective-C粉,我会推荐你Specta而不是这个,但对于Swift Quick很有可能是最好的。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_DgzJ.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-d7b409c6f56dbab8.png?imageMogr2/auto-orient/strip" data-image-slug="d7b409c6f56dbab8" data-width="1000" data-height="310" class="imagebubble-image" style="font-size: 10pt; line-height: 1.6;"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_xELE.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-3dfc2f36c8d6a899.png?imageMogr2/auto-orient/strip" data-image-slug="3dfc2f36c8d6a899" data-width="1000" data-height="718" class="imagebubble-image"><br></p><p><strong>CocoaPods:<br></strong></p><p>pod 'Quick'</p><p><strong><a href="https://github.com/Quick/Quick" target="_blank">GitHub</a></strong></p><h3>19. IAPHelper</h3><p>app内购带给我们很多陈词滥调的代码,用这个库就不需要了,把最有关交易金钱的普遍的任务从iOS用户到你的(或者你的公司的)钱包简单包装起来。</p><p><strong>CocoaPods:</strong><br></p><p>pod 'IAPHelper'</p><p><strong><a href="https://github.com/saturngod/IAPHelper" target="_blank">GitHub</a></strong></p><h3>20. ReactiveCocoa</h3><p>好吧,这里我们有一个小怪兽。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_l40A.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-6c7ab0453e80829a.png?imageMogr2/auto-orient/strip" data-image-slug="6c7ab0453e80829a" data-width="624" data-height="132" class="imagebubble-image"><br></p><p>ReactiveCocoa并不是很小、易用的项目,就像这个列表里其它项目一样。<strong>ReactiveCocoa带给我们一种完全不同的编程方式/结构,基于值的信号和流。</strong>这是完全的头脑风暴,首先你需要忘记你曾经学习的来理解它是如何工作的。这不是一个简单的任务,但是是有回报的。</p><p>这不是一个合适的地方来教你使用ReactiveCocoa,但我会给你一些好的资源,如果你感兴趣的话。</p><ul class=" list-paddingleft-2"><li><p><a href="http://www.teehanlax.com/blog/getting-started-with-reactivecocoa/" target="_blank">Getting Started with ReactiveCocoa</a></p></li><li><p><a href="http://nshipster.com/reactivecocoa/" target="_blank">ReactiveCocoa</a></p></li><li><p><a href="http://www.raywenderlich.com/62699/reactivecocoa-tutorial-pt1" target="_blank">ReactiveCocoa Tutorial - The Definitive Introduction: Part 1/2</a></p></li></ul><p><strong>CocoaPods:</strong><br></p><p>pod 'ReactiveCocoa'</p><p><strong><a href="https://github.com/ReactiveCocoa/ReactiveCocoa" target="_blank">GitHub</a></strong></p><h3>21. SwiftyJSON</h3><p>让Swift里的JSON解析更简单。</p><p><strong>CocoaPods:</strong><br></p><p>pod 'SwiftyJSON'</p><p><strong><a href="https://github.com/SwiftyJSON/SwiftyJSON" target="_blank">GitHub</a></strong></p><h3>22. Spring</h3><p>做动画更简单、可链和声明。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_cNgy.jpg" data-original-src="http://upload-images.jianshu.io/upload_images/861914-32e5f0336c9a9e10.jpg?imageMogr2/auto-orient/strip" data-image-slug="32e5f0336c9a9e10" data-width="1000" data-height="375" class="imagebubble-image"><br></p><p><strong>CocoaPods:</strong><br></p><p>pod 'Spring'</p><p><strong><a href="https://github.com/MengTo/Spring" target="_blank">GitHub</a></strong></p><h3>23. FontBlaster</h3><p>在app里加载自定义字体更简单。</p><p><strong>CocoaPods:</strong><br></p><p>pod 'FontBlaster'</p><p><strong><a href="https://github.com/ArtSabintsev/FontBlaster" target="_blank">GitHub</a></strong></p><h3><strong>24. TAPromotee</strong></h3><p>交叉推销你的app是最棒的销售策略之一,你可以在它们中免费实现。用这个库非常简单,你不再能为自己辩解为什么不用它——增加TAPromotee到你的podfile,配置、然后免费享受更多下载。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_CgW0.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-4e25ff785aadd75b.png?imageMogr2/auto-orient/strip" data-image-slug="4e25ff785aadd75b" data-width="375" data-height="667" class="imagebubble-image"><br></p><p><strong>CocoaPods:</strong></p><p>pod 'TAPromotee'</p><p><a href="https://github.com/JanC/TAPromotee" target="_blank">GitHub</a></p><h3>25. Concorde</h3><p>在你的app加载很多JPEG吗?用Concorde你可以加载地更好看。有进度的方式。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080337_RUfa.gif" data-original-src="http://upload-images.jianshu.io/upload_images/861914-0482228ba815f6b6.gif?imageMogr2/auto-orient/strip" data-image-slug="0482228ba815f6b6" data-width="700" data-height="407" class="imagebubble-image"><br></p><p><strong>CocoaPods:<br></strong></p><p>pod 'Concorde'</p><p><strong><a href="https://github.com/contentful-labs/Concorde" target="_blank">GitHub</a></strong></p><h3><strong>26. KeychainAccess</strong></h3><p>管理钥匙串权限的小帮手库。</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_XpOC.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-0dceea138c8956c0.png?imageMogr2/auto-orient/strip" data-image-slug="0dceea138c8956c0" data-width="563" data-height="999" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_7Rdw.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-9b3a2606d46f43c7.png?imageMogr2/auto-orient/strip" data-image-slug="9b3a2606d46f43c7" data-width="563" data-height="1000" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_EAzl.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-d3f08d23e9a43a87.png?imageMogr2/auto-orient/strip" data-image-slug="d3f08d23e9a43a87" data-width="563" data-height="1000" class="imagebubble-image"><br></p><p><strong>CocoaPods:<br></strong></p><p>pod 'KeychainAccess'</p><p><a href="https://github.com/kishikawakatsumi/KeychainAccess" target="_blank"><strong>GitHub</strong></a></p><h3>27. iOS-charts</h3><p>最后但重要的——iOS图表库!很简单和有效,我不会在这儿写太多——滑<strong>动到下面去看在你的app用它可以干嘛。</strong></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_6aZw.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-0c374a3e924540d5.png?imageMogr2/auto-orient/strip" data-image-slug="0c374a3e924540d5" data-width="1000" data-height="425" class="imagebubble-image" style="font-size: 10pt; line-height: 1.6;"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_eVX3.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-ed772e9dfa73598d.png?imageMogr2/auto-orient/strip" data-image-slug="ed772e9dfa73598d" data-width="1000" data-height="466" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_keWm.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-dc6d80251d1c5341.png?imageMogr2/auto-orient/strip" data-image-slug="dc6d80251d1c5341" data-width="1000" data-height="486" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_dhFM.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-bd66a6dae3e7c811.png?imageMogr2/auto-orient/strip" data-image-slug="bd66a6dae3e7c811" data-width="900" data-height="300" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_ykd2.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-3d04e22674183ee5.png?imageMogr2/auto-orient/strip" data-image-slug="3d04e22674183ee5" data-width="700" data-height="348" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_kf4l.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-af78c57b2ce2e698.png?imageMogr2/auto-orient/strip" data-image-slug="af78c57b2ce2e698" data-width="1000" data-height="496" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_RUxn.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-12c451ad246d01c8.png?imageMogr2/auto-orient/strip" data-image-slug="12c451ad246d01c8" data-width="1000" data-height="461" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_NAiX.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-aab25e8afd68e2d4.png?imageMogr2/auto-orient/strip" data-image-slug="aab25e8afd68e2d4" data-width="950" data-height="315" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_Y2hk.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-24b84e17c53d3b1d.png?imageMogr2/auto-orient/strip" data-image-slug="24b84e17c53d3b1d" data-width="1000" data-height="232" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_v3M0.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-0ee28b50739b2b1d.png?imageMogr2/auto-orient/strip" data-image-slug="0ee28b50739b2b1d" data-width="768" data-height="809" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_t7Cn.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-573804d25589adc3.png?imageMogr2/auto-orient/strip" data-image-slug="573804d25589adc3" data-width="1000" data-height="330" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_x3y5.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-054d2a7dede014ad.png?imageMogr2/auto-orient/strip" data-image-slug="054d2a7dede014ad" data-width="900" data-height="299" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_WsSg.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-219f1c200abfeb3e.png?imageMogr2/auto-orient/strip" data-image-slug="219f1c200abfeb3e" data-width="1000" data-height="230" class="imagebubble-image"><br></p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_cC7r.png" data-original-src="http://upload-images.jianshu.io/upload_images/861914-7ab5ed589df30357.png?imageMogr2/auto-orient/strip" data-image-slug="7ab5ed589df30357" data-width="650" data-height="603" class="imagebubble-image"><br></p><p>是的,所有东西都是可用的,作为一个可放进去(好吧,也许是“可写进去”)的组件。</p><p>不幸的是目前还没有CocoaPods支持,所以你需要手动拖动项目到你的Xcode workspace中。</p><h2>所有库的太长不看列表,快速访问:</h2><p>1. <a href="https://github.com/dzenbot/DZNEmptyDataSet" target="_blank">DZNEmptyDataSet</a> <br></p><p>2. <a href="https://github.com/jivesoftware/PDTSimpleCalendar" target="_blank">PDTSimpleCalendar</a> </p><p>3. <a href="https://github.com/magicalpanda/MagicalRecord" target="_blank">MagicalRecord</a> </p><p>4. <a href="https://github.com/ViccAlexander/Chameleon" target="_blank">Chameleon</a> </p><p>5. <a href="https://github.com/Alamofire/Alamofire" target="_blank">Alamofire</a> </p><p>6. <a href="https://github.com/raulriera/TextFieldEffects" target="_blank">TextFieldEffects</a> </p><p>7. <a href="https://github.com/BradLarson/GPUImage" target="_blank">GPUImage</a> [快速图像处理]</p><p>8. <a href="https://github.com/nicklockwood/iRate" target="_blank">iRate</a> [获得用户评价]</p><p>9. <a href="https://github.com/nihalahmed/GameCenterManager" target="_blank">GameCenterManager</a> [轻松管理Game Center]</p><p>10. <a href="https://github.com/pkluz/PKRevealController" target="_blank">PKRevealController</a> </p><p>11. <a href="https://github.com/slackhq/SlackTextViewController" target="_blank">SlackTextViewController</a> </p><p>12. <a href="https://github.com/romaonthego/RETableViewManager" target="_blank">RETableViewManager</a> [用代码动态创建table view]</p><p>13. <a href="https://github.com/nickoneill/PermissionScope" target="_blank">PermissionScope</a> </p><p>14. <a href="https://github.com/TransitApp/SVProgressHUD" target="_blank">SVProgressHUD</a> </p><p>15. <a href="https://github.com/PrideChung/FontAwesomeKit" target="_blank">FontAwesomeKit</a> [轻松地添加酷字体到你的app中]</p><p>16. <a href="https://github.com/SnapKit/SnapKit" target="_blank">SnapKit</a> [用代码轻松auto layout]</p><p>17. <a href="https://github.com/MortimerGoro/MGSwipeTableCell" target="_blank">MGSwipeTableCell</a> </p><p>18. <a href="https://github.com/Quick/Quick" target="_blank">Quick</a> </p><p>19. <a href="https://github.com/saturngod/IAPHelper" target="_blank">IAPHelper</a> </p><p>20. <a href="https://github.com/ReactiveCocoa/ReactiveCocoa" target="_blank">ReactiveCocoa</a> </p><p>21. <a href="https://github.com/SwiftyJSON/SwiftyJSON" target="_blank">SwiftyJSON</a> </p><p>22. <a href="https://github.com/MengTo/Spring" target="_blank">Spring</a> [动画框架]</p><p>23. <a href="https://github.com/ArtSabintsev/FontBlaster" target="_blank">FontBlaster</a> [轻松在app中加载自定义字体]</p><p>24. <a href="https://github.com/JanC/TAPromotee" target="_blank">TAPromotee</a> [在你的app中交叉提示,置入界面]</p><p>25. <a href="https://github.com/contentful-labs/Concorde" target="_blank">Concorde</a> [下载和解码进度化JPEGs]</p><p>26. <a href="https://github.com/kishikawakatsumi/KeychainAccess" target="_blank">KeychainAccess</a> [轻松管理钥匙串]</p><p>27. <a href="https://github.com/danielgindi/ios-charts" target="_blank">iOS-charts</a> [漂亮的图表库]</p><hr><p>感谢阅读,真是一个长列表!如果你认为创建是有价值的,<strong>请分享它,通过点击文章下方的分享按钮</strong>——更多人会从中受益。并且如果你是一个Meduim用户,<strong>请点击推荐按钮</strong>——它会鼓舞我创建更多iOS开发文章!</p><p><strong>One more thing</strong>——如果你在读这篇文章,你很有可能是个<strong>iOS开发者。</strong>很多iOS开发者也是iPhone用户——所以我有一些你可能感兴趣的东西。</p><p><strong>我运行着一个<a href="http://iosappsweekly.com/" target="_blank">每周一次手选最好的iOS app和游戏</a>——看看吧</strong>,我关注高质量并且只挑选酷的app。连接也会很酷!</p><p style="text-align: center;"><img data-bd-imgshare-binded="1" src="http://static.oschina.net/uploads/img/201607/20080338_ZUZ5.jpg" data-original-src="http://upload-images.jianshu.io/upload_images/861914-f8dd01b052db3a9c.jpg?imageMogr2/auto-orient/strip" data-image-slug="f8dd01b052db3a9c" data-width="800" data-height="532" class="imagebubble-image"><br></p><p>你也可以在<a href="https://twitter.com/pawel_bialecki" target="_blank">推特上follow我</a>,我最经常讨论iOS开发的地方。</p><p>文/张嘉夫<br>译文出处:<a href="http://www.jianshu.com/p/228535226656" target="_blank">简书</a></p><p></p>
页:
[1]