PageRenderTime 55ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Pods/YYCategories/README.md

https://gitlab.com/ForrestAlfred/soul
Markdown | 145 lines | 98 code | 47 blank | 0 comment | 0 complexity | 88b1ebf57a54845ed1a44c9d40205b8d MD5 | raw file
  1. YYCategories
  2. ==============
  3. [![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/ibireme/YYCategories/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/YYCategories.svg?style=flat)](http://cocoapods.org/?q=YYCategories) 
  6. [![CocoaPods](http://img.shields.io/cocoapods/p/YYCategories.svg?style=flat)](http://cocoapods.org/?q=YYCategories) 
  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/YYCategories.svg?branch=master)](https://travis-ci.org/ibireme/YYCategories)
  9. A set of useful categories for Foundation and UIKit.<br/>
  10. (It's a component of [YYKit](https://github.com/ibireme/YYKit))
  11. Documentation
  12. ==============
  13. You can build and install docset use `Docset` scheme in Xcode, `appledoc` need to be pre-installed.
  14. Or your can read the [Documentation](http://github.ibireme.com/doc/YYCategories/index.html) online.
  15. Installation
  16. ==============
  17. ### CocoaPods
  18. 1. Add `pod 'YYCategories'` to your Podfile.
  19. 2. Run `pod install` or `pod update`.
  20. 3. Import \<YYCategories/YYCategories.h\>.
  21. ### Carthage
  22. 1. Add `github "ibireme/YYCategories"` to your Cartfile.
  23. 2. Run `carthage update --platform ios` and add the framework to your project.
  24. 3. Import \<YYCategories/YYCategories.h\>.
  25. ### Manually
  26. 1. Download all the files in the YYCategories subdirectory.
  27. 2. Add the source files to your Xcode project.
  28. 3. Add `-fno-objc-arc` compiler flag to `NSObject+YYAddForARC.m` and `NSThread+YYAdd.m`.
  29. 4. Link with required frameworks:
  30. * UIKit
  31. * CoreGraphics
  32. * QuartzCore
  33. * Accelerate
  34. * ImageIO
  35. * CoreText
  36. * CoreFoundation
  37. * libz
  38. 5. Import `YYCategories.h`.
  39. Documentation
  40. ==============
  41. Full API documentation is available on [CocoaDocs](http://cocoadocs.org/docsets/YYCategories/).<br/>
  42. You can also install documentation locally using [appledoc](https://github.com/tomaz/appledoc).
  43. Requirements
  44. ==============
  45. This library requires `iOS 6.0+` and `Xcode 7.0+`.
  46. Notice
  47. ==============
  48. I want to use the APIs as if it was provided by system, so I don't add prefix in
  49. these categories. This may cause some potential problemssuch as conflict with other libraries), so if you just need some pieces of code
  50. in this project, pick them out and don't import the whole library.
  51. License
  52. ==============
  53. YYCategories is provided under the MIT license. See LICENSE file for details.
  54. <br/><br/>
  55. ---
  56. 中文介绍
  57. ==============
  58. 功能丰富的 Category 类型工具库<br/>
  59. (该项目是 [YYKit](https://github.com/ibireme/YYKit) 组件之一)
  60. 文档
  61. ==============
  62. 你可以用 `Docset` scheme 来生成文档 (需要预先安装 appledoc)或者[在线查看](http://github.ibireme.com/doc/YYCategories/index.html)。
  63. 安装
  64. ==============
  65. ### CocoaPods
  66. 1. Podfile 中添加 `pod 'YYCategories'`
  67. 2. 执行 `pod install` `pod update`
  68. 3. 导入 \<YYCategories/YYCategories.h\>
  69. ### Carthage
  70. 1. Cartfile 中添加 `github "ibireme/YYCategories"`
  71. 2. 执行 `carthage update --platform ios` 并将生成的 framework 添加到你的工程
  72. 3. 导入 \<YYCategories/YYCategories.h\>
  73. ### 手动安装
  74. 1. 下载 YYCategories 文件夹内的所有内容
  75. 2. YYCategories 内的源文件添加(拖放)到你的工程
  76. 3. `NSObject+YYAddForARC.m` `NSThread+YYAdd.m` 添加编译参数 `-fno-objc-arc`
  77. 4. 链接以下 frameworks:
  78. * UIKit
  79. * CoreGraphics
  80. * QuartzCore
  81. * Accelerate
  82. * ImageIO
  83. * CoreText
  84. * CoreFoundation
  85. * libz
  86. 5. 导入 `YYCategories.h`
  87. 文档
  88. ==============
  89. 你可以在 [CocoaDocs](http://cocoadocs.org/docsets/YYCategories/) 查看在线 API 文档,也可以用 [appledoc](https://github.com/tomaz/appledoc) 本地生成文档。
  90. 系统要求
  91. ==============
  92. 该项目最低支持 `iOS 6.0` `Xcode 7.0`
  93. 注意
  94. ==============
  95. 我希望调用 API 有着和调用系统自带 API 一样的体验所以我并没有为 Category 方法添加前缀我已经用工具扫描过这个项目中的 API确保没有对系统 API 产生影响我知道没有前缀的 Category 可能会带来麻烦比如可能和其他某些类库产生冲突所以如果你只需要其中少量代码那最好将那段代码取出来而不是导入整个库
  96. 许可证
  97. ==============
  98. YYCategories 使用 MIT 许可证详情见 LICENSE 文件