Swift 必备开发库 (高级篇)
lsky8290
8年前
<p style="text-align:center"><img src="https://simg.open-open.com/show/811dd5b7cc5a4965ab66fee9a164d350.jpg"></p> <p>本文投稿文章,作者:s print( <a href="/misc/goto?guid=4959673704864387377" rel="nofollow,noindex">简书</a> )</p> <p>1、CryptoSwift</p> <p>swift加密库, 支持md5,sha1,sha224,sha256...</p> <p>github地址: <a href="/misc/goto?guid=4959616324196754050" rel="nofollow,noindex">https://github.com/krzyzanowskim/CryptoSwift</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/c0035b13bff527ae0189264e012a49a6.jpg"></p> <p>2、Kingfisher</p> <p>Kingfisher 是一个异步下载和缓存图片的库 类似于SDWebImage</p> <p>只不过它是纯Swift的实现</p> <p>github地址: <a href="/misc/goto?guid=4958872058774071441" rel="nofollow,noindex">https://github.com/onevcat/Kingfisher</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/cceaec06b36c169ed505ccbeb0b097d5.jpg"></p> <p>3、PeekPop</p> <p>3DTouch动画组件</p> <p>Peek和Pop是iPhone 6S和6S+上新增的一个很棒的iOS特性,可以很方便地使用3D touch来预览内容。</p> <p>github地址: <a href="/misc/goto?guid=4959673672186343578" rel="nofollow,noindex">https://github.com/marmelroy/PeekPop</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/7f2eb7b02e1f40e28aab6cacc54a5fe2.jpg"></p> <p><img src="https://simg.open-open.com/show/166162840b8980f35cae1e786c3bbee4.gif"></p> <p>4、AlamofireObjectMapper</p> <p>将Alamofire JSON响应数据 转为swift对象</p> <p>github地址: <a href="/misc/goto?guid=4959673672284525554" rel="nofollow,noindex">https://github.com/tristanhimmelman/AlamofireObjectMapper</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/5bcd9d215f04cbe998181312a4baf950.jpg"></p> <p>5、RxAlamofire</p> <p>为Alamofire提供 函数响应式(FRP)调用接口</p> <p>以优雅的方式使用Alamofire进行网络请求</p> <p>github地址: <a href="/misc/goto?guid=4959673672367273633" rel="nofollow,noindex">https://github.com/RxSwiftCommunity/RxAlamofire</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/4acab67dc428ec9557349bad5e265ce9.jpg"></p> <p>6、PromiseKit</p> <p>异步编程类库 提供了很多实用的异步函数 让异步编程更简单</p> <p>github地址: <a href="/misc/goto?guid=4958870678635630216" rel="nofollow,noindex">https://github.com/mxcl/PromiseKit</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/892894045da9202089f4fa2a2dabfff4.jpg"></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/022bb714a16e06069ac9b142d4b73422.jpg"></p> <p>7、EZSwiftExtensions</p> <p>对Swift标准库, Foundation, UIKit 提供了很多高级扩展函数</p> <p>包括以下内容:</p> <p>NSObject</p> <p>Bool</p> <p>Int</p> <p>Double</p> <p>String</p> <p>NSAttritedString</p> <p>Array</p> <p>Dictioanry</p> <p>NSDate</p> <p>NSTimer</p> <p>CGRect</p> <p>UIViewController</p> <p>UIView</p> <p>UITextView</p> <p>UILabel</p> <p>UIImageView</p> <p>UIImage</p> <p>Block Objects</p> <p>UIDevice</p> <p>NSUserDefauts</p> <p>NSURL</p> <p>EZ function and variables</p> <p>github地址: <a href="/misc/goto?guid=4959649070137678009" rel="nofollow,noindex">https://github.com/goktugyil/EZSwiftExtensions</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/941238f3040fc03f86b086fefda760a0.jpg"></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/652176da6298d4e022edaf5adaf99f14.jpg"></p> <p>8、Aspects</p> <p>swift面向切面编程(AOP)库 【Method Swizzling】</p> <p>github地址: <a href="/misc/goto?guid=4959630207627933220" rel="nofollow,noindex">https://github.com/steipete/Aspects</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/20fc78530ce0a124aa592fa18d6e2fab.jpg"></p> <p>9、PermissionScope</p> <p>权限管理库 提供申请权限授权操作</p> <p>githubd地址: <a href="/misc/goto?guid=4958872895828933554" rel="nofollow,noindex">https://github.com/nickoneill/PermissionScope</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/140f77ec8ab49a667900a9c404cf4df9.jpg"></p> <p><img src="https://simg.open-open.com/show/6df2cb88df18cbe95cf8fb2e8c1250e9.gif"></p> <p>10、Alamofire</p> <p>网络操作库 基本都知道</p> <p>github地址: <a href="/misc/goto?guid=4958851213782329914" rel="nofollow,noindex">https://github.com/Alamofire/Alamofire</a></p> <p style="text-align:center"><img src="https://simg.open-open.com/show/8b442ebce77d4d2af21ad9c324e17620.png"></p> <p> </p> <p>来自: <a href="/misc/goto?guid=4959673672596005666" rel="nofollow">http://www.cocoachina.com/swift/20160525/16437.html</a></p> <p> </p>