PageRenderTime 58ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/TreasureBox/Pods/YYKit/README.md

https://gitlab.com/chenguibang/TreasureBox
Markdown | 187 lines | 136 code | 51 blank | 0 comment | 0 complexity | e8143061b9822fa1119ca3044b418b69 MD5 | raw file
  1. YYKit
  2. ==============
  3. [![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/ibireme/YYKit/master/LICENSE) 
  4. [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 
  5. [![CocoaPods](http://img.shields.io/cocoapods/v/YYKit.svg?style=flat)](http://cocoapods.org/?q=YYKit) 
  6. [![CocoaPods](http://img.shields.io/cocoapods/p/YYKit.svg?style=flat)](http://cocoapods.org/?q=YYKit) 
  7. [![Support](https://img.shields.io/badge/support-iOS%206%2B%20-blue.svg?style=flat)](https://www.apple.com/nl/ios/) 
  8. [![Build Status](https://travis-ci.org/ibireme/YYKit.svg?branch=master)](https://travis-ci.org/ibireme/YYKit)
  9. YYKit is a collection of iOS components.
  10. It's so huge that I split it into several independent components:
  11. * [YYModel](https://github.com/ibireme/YYModel) — High performance model framework for iOS.
  12. * [YYCache](https://github.com/ibireme/YYCache) — High performance cache framework for iOS.
  13. * [YYImage](https://github.com/ibireme/YYImage) — Image framework for iOS to display/encode/decode animated WebP, APNG, GIF.
  14. * [YYWebImage](https://github.com/ibireme/YYWebImage) — Asynchronous image loading framework.
  15. * [YYText](https://github.com/ibireme/YYText) — Powerful rich text component for iOS.
  16. * [YYKeyboardManager](https://github.com/ibireme/YYKeyboardManager) — Access keyboard view and track keyboard animation.
  17. * [YYDispatchQueuePool](https://github.com/ibireme/YYDispatchQueuePool) — iOS utility class to manage global dispatch queue.
  18. * [YYAsyncLayer](https://github.com/ibireme/YYAsyncLayer) — iOS utility classes for asynchronous rendering and display.
  19. * [YYCategories](https://github.com/ibireme/YYCategories) — A set of useful categories for Foundation and UIKit.
  20. Demo Project
  21. ==============
  22. See `Demo/YYKitDemo.xcodeproj`
  23. <img src="https://raw.github.com/ibireme/YYKit/master/Demo/Snapshots/twitter.png" width="320"><br/>
  24. <img src="https://raw.github.com/ibireme/YYKit/master/Demo/Snapshots/weibo.png" width="320"> <img src="https://raw.github.com/ibireme/YYKit/master/Demo/Snapshots/weibo_compose.png" width="320">
  25. Installation
  26. ==============
  27. ### CocoaPods
  28. 1. Add `pod 'YYKit'` to your Podfile.
  29. 2. Run `pod install` or `pod update`.
  30. 3. Import \<YYKit/YYKit.h\>.
  31. ### Carthage
  32. 1. Add `github "ibireme/YYKit"` to your Cartfile.
  33. 2. Run `carthage update --platform ios` and add the framework to your project.
  34. 3. Import \<YYKit/YYKit.h\>.
  35. 4. Notice: carthage framework doesn't include webp component, if you want to support webp, use CocoaPods or install manually.
  36. ### Manually
  37. 1. Download all the files in the `YYKit` subdirectory.
  38. 2. Add the source files to your Xcode project.
  39. 3. Add `-fno-objc-arc` compiler flag to `NSObject+YYAddForARC.m` and `NSThread+YYAdd.m`.
  40. 4. Link with required frameworks:
  41. * UIKit
  42. * CoreFoundation
  43. * CoreText
  44. * CoreGraphics
  45. * CoreImage
  46. * QuartzCore
  47. * ImageIO
  48. * AssetsLibrary
  49. * Accelerate
  50. * MobileCoreServices
  51. * SystemConfiguration
  52. * sqlite3
  53. * libz
  54. 5. Add `Vendor/WebP.framework`(static library) to your Xcode project if you want to support WebP.
  55. 6. Import `YYKit.h`.
  56. Documentation
  57. ==============
  58. Full API documentation is available on [CocoaDocs](http://cocoadocs.org/docsets/YYKit/).<br/>
  59. You can also install documentation locally using [appledoc](https://github.com/tomaz/appledoc).
  60. Requirements
  61. ==============
  62. This library requires `iOS 6.0+` and `Xcode 7.0+`.
  63. Notice
  64. ==============
  65. I want to use the APIs as if it was provided by system, and I don't add prefix in
  66. these categories. I do not recommend using the `YYKit` directly, you should try the separated components first.
  67. License
  68. ==============
  69. YYKit is provided under the MIT license. See LICENSE file for details.
  70. <br/>
  71. ---
  72. 中文介绍
  73. ==============
  74. YYKit 是一组庞大功能丰富的 iOS 组件
  75. 为了尽量复用代码这个项目中的某些组件之间有比较强的依赖关系为了方便其他开发者使用我从中拆分出以下独立组件
  76. * [YYModel](https://github.com/ibireme/YYModel) — 高性能的 iOS JSON 模型框架。
  77. * [YYCache](https://github.com/ibireme/YYCache) — 高性能的 iOS 缓存框架。
  78. * [YYImage](https://github.com/ibireme/YYImage) — 功能强大的 iOS 图像框架。
  79. * [YYWebImage](https://github.com/ibireme/YYWebImage) — 高性能的 iOS 异步图像加载框架。
  80. * [YYText](https://github.com/ibireme/YYText) — 功能强大的 iOS 富文本框架。
  81. * [YYKeyboardManager](https://github.com/ibireme/YYKeyboardManager) — iOS 键盘监听管理工具。
  82. * [YYDispatchQueuePool](https://github.com/ibireme/YYDispatchQueuePool) — iOS 全局并发队列管理工具。
  83. * [YYAsyncLayer](https://github.com/ibireme/YYAsyncLayer) — iOS 异步绘制与显示的工具。
  84. * [YYCategories](https://github.com/ibireme/YYCategories) — 功能丰富的 Category 类型工具库。
  85. 演示项目
  86. ==============
  87. 查看并运行 `Demo/YYKitDemo.xcodeproj`
  88. <img src="https://raw.github.com/ibireme/YYKit/master/Demo/Snapshots/twitter.png" width="320"><br/>
  89. <img src="https://raw.github.com/ibireme/YYKit/master/Demo/Snapshots/weibo.png" width="320"> <img src="https://raw.github.com/ibireme/YYKit/master/Demo/Snapshots/weibo_compose.png" width="320">
  90. 安装
  91. ==============
  92. ### CocoaPods
  93. 1. Podfile 中添加 `pod 'YYKit'`
  94. 2. 执行 `pod install` `pod update`
  95. 3. 导入 \<YYKit/YYKit.h\>
  96. ### Carthage
  97. 1. Cartfile 中添加 `github "ibireme/YYKit"`
  98. 2. 执行 `carthage update --platform ios` 并将生成的 framework 添加到你的工程
  99. 3. 导入 \<YYKit/YYKit.h\>
  100. 4. 注意: carthage framework 并没有包含 webp 组件如果你需要支持 webp可以用 CocoaPods 安装或者手动安装
  101. ### 手动安装
  102. 1. 下载 YYKit 文件夹内的所有内容
  103. 2. YYKit 内的源文件添加(拖放)到你的工程
  104. 3. `NSObject+YYAddForARC.m` `NSThread+YYAdd.m` 添加编译参数 `-fno-objc-arc`
  105. 4. 链接以下 frameworks:
  106. * UIKit
  107. * CoreFoundation
  108. * CoreText
  109. * CoreGraphics
  110. * CoreImage
  111. * QuartzCore
  112. * ImageIO
  113. * AssetsLibrary
  114. * Accelerate
  115. * MobileCoreServices
  116. * SystemConfiguration
  117. * sqlite3
  118. * libz
  119. 5. 如果你需要支持 WebP可以将 `Vendor/WebP.framework`(静态库) 加入你的工程
  120. 6. 导入 `YYKit.h`
  121. 文档
  122. ==============
  123. 你可以在 [CocoaDocs](http://cocoadocs.org/docsets/YYKit/) 查看在线 API 文档,也可以用 [appledoc](https://github.com/tomaz/appledoc) 本地生成文档。
  124. 系统要求
  125. ==============
  126. 该项目最低支持 `iOS 6.0` `Xcode 7.0`
  127. 注意
  128. ==============
  129. 我希望调用 API 有着和调用系统自带 API 一样的体验所以我并没有为 Category 方法添加前缀我已经用工具扫描过这个项目中的 API确保没有对系统 API 产生影响但即使这样没有前缀的 Category 也可能会带来其他麻烦因此我不太推荐直接使用 `YYKit` 这个库你应该先尝试一下上面那些拆分出来的独立组件
  130. 许可证
  131. ==============
  132. YYKit 使用 MIT 许可证详情见 LICENSE 文件
  133. 相关文章
  134. ==============
  135. [iOS 保持界面流畅的技巧
  136. ](http://blog.ibireme.com/2015/11/12/smooth_user_interfaces_for_ios/)