Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 684394255f | |||
| 9122a8ccd9 | |||
| 19ef4290a9 | |||
| 970838c6c1 |
@@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.1</string>
|
||||
<string>0.9.2</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
@@ -2,8 +2,8 @@ YYImage <a href="#中文介绍">中文介绍</a>
|
||||
==============
|
||||
[](https://raw.githubusercontent.com/ibireme/YYImage/master/LICENSE)
|
||||
[](https://github.com/Carthage/Carthage)
|
||||
[](http://cocoapods.org/?q= YYImage)
|
||||
[](http://cocoapods.org/?q= YYImage)
|
||||
[](http://cocoapods.org/?q= YYImage)
|
||||
[](http://cocoapods.org/?q= YYImage)
|
||||
[](https://www.apple.com/nl/ios/)
|
||||
[](https://travis-ci.org/ibireme/YYImage)
|
||||
|
||||
@@ -130,7 +130,7 @@ Usage
|
||||
Installation
|
||||
==============
|
||||
|
||||
### Cocoapods
|
||||
### CocoaPods
|
||||
|
||||
1. Update cocoapods to the latest version.
|
||||
1. Add `pod "YYImage"` to your Podfile.
|
||||
@@ -185,6 +185,8 @@ YYImage is provided under the MIT license. See LICENSE file for details.
|
||||
YYImage: 功能强大的 iOS 图像框架。<br/>
|
||||
(该项目是 [YYKit](https://github.com/ibireme/YYKit) 组件之一)
|
||||
|
||||

|
||||
|
||||
特性
|
||||
==============
|
||||
@@ -308,7 +310,7 @@ YYImage: 功能强大的 iOS 图像框架。<br/>
|
||||
安装
|
||||
==============
|
||||
|
||||
### Cocoapods
|
||||
### CocoaPods
|
||||
|
||||
1. 将 cocoapods 更新至最新版本.
|
||||
1. 在 Podfile 中添加 `pod "YYImage"`。
|
||||
@@ -321,7 +323,7 @@ YYImage: 功能强大的 iOS 图像框架。<br/>
|
||||
1. 在 Cartfile 中添加 `github "ibireme/YYImage"`。
|
||||
2. 执行 `carthage update --platform ios` 并将生成的 framework 添加到你的工程。
|
||||
3. 导入 \<YYImage/YYImage.h\>。
|
||||
4. 注意: carthage framework 并没有包含 webp 组件。如果你需要支持 webp,可以用 Cocoapods 安装,或者手动安装。
|
||||
4. 注意: carthage framework 并没有包含 webp 组件。如果你需要支持 webp,可以用 CocoaPods 安装,或者手动安装。
|
||||
|
||||
### 手动安装
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'YYImage'
|
||||
s.summary = 'Image framework for iOS to display/encode/decode animated WebP, APNG, GIF, and more.'
|
||||
s.version = '0.9.1'
|
||||
s.version = '0.9.2'
|
||||
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
||||
s.authors = { 'ibireme' => 'ibireme@gmail.com' }
|
||||
s.social_media_url = 'http://blog.ibireme.com'
|
||||
|
||||
@@ -197,6 +197,13 @@ typedef NS_ENUM(NSUInteger, YYAnimagedImageType) {
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame {
|
||||
self = [super initWithFrame:frame];
|
||||
_runloopMode = NSRunLoopCommonModes;
|
||||
_autoPlayAnimatedImage = YES;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithImage:(UIImage *)image {
|
||||
self = [super init];
|
||||
_runloopMode = NSRunLoopCommonModes;
|
||||
|
||||
Reference in New Issue
Block a user