ibireme 9 anni fa
parent
commit
57db7b293e
1 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 7 4
      README.md

+ 7 - 4
README.md

@@ -112,9 +112,10 @@ Installation
 	* MobileCoreServices
 	* sqlite3
 	* libz
-4. Add `Vendor/WebP.framework`(static library) to your Xcode project if you want to support webp.
-5. Import `YYWebImage.h`.
+4. Import `YYWebImage.h`.
 
+*  If you want to support WebP format, you may add Add `Vendor/WebP.framework`(static library) to your Xcode project.
+*  If you want to use it in App Extension, you may add `YY_TARGET_IS_EXTENSION` flag in `Build Settings` - `Preprocessor Macros` sections.
 
 Documentation
 ==============
@@ -241,8 +242,10 @@ YYWebImage 是一个异步图片加载框架 ([YYKit](https://github.com/ibireme
 	* MobileCoreServices
 	* sqlite3
 	* libz
-4. 如果你需要支持 webp,可以将 `Vendor/WebP.framework`(静态库) 加入你的工程。
-5. 导入 `YYWebImage.h`。
+4. 导入 `YYWebImage.h`。
+
+*  如果你需要支持 WebP 格式,可以将 `Vendor/WebP.framework`(静态库) 加入你的工程。
+*  如果你需要在 App Extension 中使用这些代码, 可以在 `Build Settings` - `Preprocessor Macros` 中添加 `YY_TARGET_IS_EXTENSION` 参数。
 
 文档
 ==============