ibireme пре 9 година
родитељ
комит
d756a7785c
4 измењених фајлова са 21 додато и 21 уклоњено
  1. 1 1
      Framework/Info.plist
  2. 17 17
      README.md
  3. 1 1
      YYWebImage.podspec
  4. 2 2
      YYWebImage/YYWebImageManager.h

+ 1 - 1
Framework/Info.plist

@@ -15,7 +15,7 @@
 	<key>CFBundlePackageType</key>
 	<string>FMWK</string>
 	<key>CFBundleShortVersionString</key>
-	<string>0.9.14</string>
+	<string>1.0</string>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<key>CFBundleVersion</key>

+ 17 - 17
README.md

@@ -106,17 +106,17 @@ Installation
 ### CocoaPods
 
 1. Update cocoapods to the latest version.
-1. Add `pod "YYWebImage"` to your Podfile.
-2. Run `pod install` or `pod update`.
-3. Import \<YYWebImage/YYWebImage.h\>
-
+2. Add `pod 'YYWebImage'` to your Podfile.
+3. Run `pod install` or `pod update`.
+4. Import \<YYWebImage/YYWebImage.h\>.
+5. Notice: it doesn't include WebP subspec by default, if you want to support WebP format, you may add `pod 'YYImage/WebP'` to your Podfile.
 
 ### Carthage
 
 1. Add `github "ibireme/YYWebImage"` to your Cartfile.
 2. Run `carthage update --platform ios` and add the framework to your project.
-3. Import \<YYWebImage/YYWebImage.h\>
-4. Notice: carthage framework doesn't include webp component, if you want to support webp, use cocoapods or install manually.
+3. Import \<YYWebImage/YYWebImage.h\>.
+4. Notice: carthage framework doesn't include webp component, if you want to support WebP format, use CocoaPods or install manually.
 
 ### Manually
 
@@ -132,8 +132,8 @@ 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`.
+5. Notice: if you want to support WebP format, you may add `Vendor/WebP.framework`(static library) to your Xcode project.
 
 
 Documentation
@@ -144,7 +144,7 @@ You can also install documentation locally using [appledoc](https://github.com/t
 
 Requirements
 ==============
-This library requires a deployment target of iOS 6.0 or greater.
+This library requires `iOS 6.0+` and `Xcode 7.0+`.
 
 
 License
@@ -256,17 +256,17 @@ YYWebImage 是一个异步图片加载框架 ([YYKit](https://github.com/ibireme
 ### CocoaPods
 
 1. 将 cocoapods 更新至最新版本.
-1. 在 Podfile 中添加 `pod "YYWebImage"`。
-2. 执行 `pod install` 或 `pod update`。
-3. 导入 \<YYWebImage/YYWebImage.h\>。
-
+2. 在 Podfile 中添加 `pod 'YYWebImage'`。
+3. 执行 `pod install` 或 `pod update`。
+4. 导入 \<YYWebImage/YYWebImage.h\>。
+5. 注意:pod 配置并没有包含 WebP 组件, 如果你需要支持 WebP,可以在 Podfile 中添加 `pod 'YYImage/WebP'`。
 
 ### Carthage
 
 1. 在 Cartfile 中添加 `github "ibireme/YYWebImage"`。
 2. 执行 `carthage update --platform ios` 并将生成的 framework 添加到你的工程。
 3. 导入 \<YYWebImage/YYWebImage.h\>。
-4. 注意: carthage framework 并没有包含 webp 组件。如果你需要支持 webp,可以用 cocoapods 安装,或者手动安装。
+4. 注意: carthage framework 并没有包含 webp 组件。如果你需要支持 WebP,可以用 CocoaPods 安装,或者手动安装。
 
 ### 手动安装
 
@@ -282,8 +282,8 @@ YYWebImage 是一个异步图片加载框架 ([YYKit](https://github.com/ibireme
 	* MobileCoreServices
 	* sqlite3
 	* libz
-4. 如果你需要支持 WebP,可以将 `Vendor/WebP.framework`(静态库) 加入你的工程
-5. 导入 `YYWebImage.h`
+4. 导入 `YYWebImage.h`
+5. 注意:如果你需要支持 WebP,可以将 `Vendor/WebP.framework`(静态库) 加入你的工程
 
 
 文档
@@ -293,7 +293,7 @@ YYWebImage 是一个异步图片加载框架 ([YYKit](https://github.com/ibireme
 
 系统要求
 ==============
-该项目最低支持 iOS 6.0。
+该项目最低支持 `iOS 6.0` 和 `Xcode 7.0`
 
 
 许可证

+ 1 - 1
YYWebImage.podspec

@@ -1,7 +1,7 @@
 Pod::Spec.new do |s|
   s.name         = 'YYWebImage'
   s.summary      = 'Asynchronous image loading framework.'
-  s.version      = '0.9.14'
+  s.version      = '1.0'
   s.license      = { :type => 'MIT', :file => 'LICENSE' }
   s.authors      = { 'ibireme' => 'ibireme@gmail.com' }
   s.social_media_url = 'http://blog.ibireme.com'

+ 2 - 2
YYWebImage/YYWebImageManager.h

@@ -232,12 +232,12 @@ typedef void (^YYWebImageCompletionBlock)(UIImage * _Nullable image,
 /**
  The username used by NSURLCredential, default is nil.
  */
-@property (nullable, nonatomic) NSString *username;
+@property (nullable, nonatomic, copy) NSString *username;
 
 /**
  The password used by NSURLCredential, default is nil.
  */
-@property (nullable, nonatomic) NSString *password;
+@property (nullable, nonatomic, copy) NSString *password;
 
 /**
  The image HTTP request header. Default is "Accept:image/webp,image/\*;q=0.8".