From 44e5f0d1972af3cc3de13c6c2a08a80d77375cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=AB=8B=E5=AE=9D?= Date: Tue, 5 Dec 2023 10:11:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DLayer=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E8=B5=8B=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FlexLib.podspec | 2 +- FlexLib/Classes/Flexlib/ViewExt/UIView+Flex.m | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/FlexLib.podspec b/FlexLib.podspec index 8bf6b7e..f82c2a2 100644 --- a/FlexLib.podspec +++ b/FlexLib.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'FlexLib' - s.version = '3.2.1' + s.version = '3.2.2' s.summary = 'An obj-c flex layout framework for IOS & mac' # This description is used to generate tags and improve search results. diff --git a/FlexLib/Classes/Flexlib/ViewExt/UIView+Flex.m b/FlexLib/Classes/Flexlib/ViewExt/UIView+Flex.m index 0cb4ecd..5488871 100644 --- a/FlexLib/Classes/Flexlib/ViewExt/UIView+Flex.m +++ b/FlexLib/Classes/Flexlib/ViewExt/UIView+Flex.m @@ -160,8 +160,8 @@ -(void)afterInit:(NSObject*)owner if(ary.count==4){ CGFloat f1 = [ary[0] floatValue] ; CGFloat f2 = [ary[1] floatValue] ; - CGFloat f3 = [ary[3] floatValue] ; - CGFloat f4 = [ary[4] floatValue] ; + CGFloat f3 = [ary[2] floatValue] ; + CGFloat f4 = [ary[3] floatValue] ; self.layer.bounds = CGRectMake(f1, f2, f3, f4); } } @@ -198,8 +198,8 @@ -(void)afterInit:(NSObject*)owner if(ary.count==4){ CGFloat f1 = [ary[0] floatValue] ; CGFloat f2 = [ary[1] floatValue] ; - CGFloat f3 = [ary[3] floatValue] ; - CGFloat f4 = [ary[4] floatValue] ; + CGFloat f3 = [ary[2] floatValue] ; + CGFloat f4 = [ary[3] floatValue] ; self.layer.frame = CGRectMake(f1, f2, f3, f4); } } @@ -229,8 +229,8 @@ -(void)afterInit:(NSObject*)owner if(ary.count==4){ CGFloat f1 = [ary[0] floatValue] ; CGFloat f2 = [ary[1] floatValue] ; - CGFloat f3 = [ary[3] floatValue] ; - CGFloat f4 = [ary[4] floatValue] ; + CGFloat f3 = [ary[2] floatValue] ; + CGFloat f4 = [ary[3] floatValue] ; self.layer.contentsRect = CGRectMake(f1, f2, f3, f4); } } @@ -248,8 +248,8 @@ -(void)afterInit:(NSObject*)owner if(ary.count==4){ CGFloat f1 = [ary[0] floatValue] ; CGFloat f2 = [ary[1] floatValue] ; - CGFloat f3 = [ary[3] floatValue] ; - CGFloat f4 = [ary[4] floatValue] ; + CGFloat f3 = [ary[2] floatValue] ; + CGFloat f4 = [ary[3] floatValue] ; self.layer.contentsCenter = CGRectMake(f1, f2, f3, f4); } }