From cc0c1d67ccad33c8fb186c523c002591ee7cd4da Mon Sep 17 00:00:00 2001 From: molicechen Date: Thu, 15 Dec 2022 14:40:17 +0800 Subject: [PATCH] 4.6.3 --- QMUIKit.podspec | 2 +- QMUIKit/QMUIComponents/QMUITheme/UIColor+QMUITheme.m | 1 - QMUIKit/QMUIKit.h | 2 +- QMUIKit/UIKitExtensions/UIColor+QMUI.m | 4 +++- qmui.xcodeproj/project.pbxproj | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/QMUIKit.podspec b/QMUIKit.podspec index c9c476b7..9d3d49b9 100644 --- a/QMUIKit.podspec +++ b/QMUIKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "QMUIKit" - s.version = "4.6.2" + s.version = "4.6.3" s.summary = "致力于提高项目 UI 开发效率的解决方案" s.description = <<-DESC QMUI iOS 是一个致力于提高项目 UI 开发效率的解决方案,其设计目的是用于辅助快速搭建一个具备基本设计还原效果的 iOS 项目,同时利用自身提供的丰富控件及兼容处理, 让开发者能专注于业务需求而无需耗费精力在基础代码的设计上。不管是新项目的创建,或是已有项目的维护,均可使开发效率和项目质量得到大幅度提升。 diff --git a/QMUIKit/QMUIComponents/QMUITheme/UIColor+QMUITheme.m b/QMUIKit/QMUIComponents/QMUITheme/UIColor+QMUITheme.m index b765f93d..0be2e6df 100644 --- a/QMUIKit/QMUIComponents/QMUITheme/UIColor+QMUITheme.m +++ b/QMUIKit/QMUIComponents/QMUITheme/UIColor+QMUITheme.m @@ -103,7 +103,6 @@ - (CGColorRef)CGColor { CGColorSpaceRef spaceRef = CGColorSpaceCreateDeviceRGB(); CGColorRef cgColor = CGColorCreate(spaceRef, (CGFloat[]){rawColor.qmui_red, rawColor.qmui_green, rawColor.qmui_blue, rawColor.qmui_alpha}); CGColorSpaceRelease(spaceRef); - CFRelease(spaceRef); [(__bridge id)(cgColor) qmui_bindObject:self forKey:QMUICGColorOriginalColorBindKey]; return (CGColorRef)CFAutorelease(cgColor); diff --git a/QMUIKit/QMUIKit.h b/QMUIKit/QMUIKit.h index 836ce26d..918cdf61 100644 --- a/QMUIKit/QMUIKit.h +++ b/QMUIKit/QMUIKit.h @@ -13,7 +13,7 @@ #ifndef QMUIKit_h #define QMUIKit_h -static NSString * const QMUI_VERSION = @"4.6.2"; +static NSString * const QMUI_VERSION = @"4.6.3"; #if __has_include("CAAnimation+QMUI.h") #import "CAAnimation+QMUI.h" diff --git a/QMUIKit/UIKitExtensions/UIColor+QMUI.m b/QMUIKit/UIKitExtensions/UIColor+QMUI.m index 7b4a2a0e..af1140cd 100644 --- a/QMUIKit/UIKitExtensions/UIColor+QMUI.m +++ b/QMUIKit/UIKitExtensions/UIColor+QMUI.m @@ -342,8 +342,10 @@ + (void)load { CGColorSpaceRelease(spaceRef); [(__bridge id)(result) qmui_bindObject:selfObject forKey:QMUICGColorOriginalColorBindKey]; + return (CGColorRef)CFAutorelease(result); } - return (CGColorRef)CFAutorelease(result); + + return result; }; }); }); diff --git a/qmui.xcodeproj/project.pbxproj b/qmui.xcodeproj/project.pbxproj index 035fd8af..bbfa853f 100644 --- a/qmui.xcodeproj/project.pbxproj +++ b/qmui.xcodeproj/project.pbxproj @@ -1973,7 +1973,7 @@ "@loader_path/Frameworks", ); MACH_O_TYPE = mh_dylib; - MARKETING_VERSION = 4.6.2; + MARKETING_VERSION = 4.6.3; MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_BUNDLE_IDENTIFIER = com.qmui.QMUIKit; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -2017,7 +2017,7 @@ "@loader_path/Frameworks", ); MACH_O_TYPE = mh_dylib; - MARKETING_VERSION = 4.6.2; + MARKETING_VERSION = 4.6.3; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = com.qmui.QMUIKit; PRODUCT_NAME = "$(TARGET_NAME)";