Skip to content

Commit

Permalink
修复Layer相关属性赋值问题
Browse files Browse the repository at this point in the history
  • Loading branch information
郑立宝 committed Dec 5, 2023
1 parent ca67797 commit 44e5f0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion FlexLib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
16 changes: 8 additions & 8 deletions FlexLib/Classes/Flexlib/ViewExt/UIView+Flex.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 44e5f0d

Please sign in to comment.