Skip to content

Commit ff5d540

Browse files
author
欧柏泉
committed
release V1.4.2
1 parent 9417c75 commit ff5d540

13 files changed

+131
-65
lines changed

CHANGELOG.md

+20-7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33

44
---
55

6+
## [V1.4.2](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.4.2)(2017/8/31)
7+
8+
#### Added
9+
1. 表格布局MyTableLayout添加了`addRow:colCount:`方法,目的是为了支持那些列数固定并且宽度固定的需求,具体例子见DEMO:[TLTest1ViewController](https://github.com/youngsoft/MyLinearLayout/blob/master/MyLayout/TLTest1ViewController.m)中的第五行的代码。
10+
2. 添加了布局视图的高度等于非布局父视图宽度以及布局视图宽度等于非布局父视图高度的支持,目的是为了支持对布局视图进行旋转`transform`的支持。
11+
3. 添加了框架布局MyFrameLayout中子视图的高度等于另外视图宽度以及宽度等于另外视图高度的支持。
12+
4. 下一个版本将会有重大功能的添加:栅格布局的支持、基线对齐的支持、均分的再次优化等等功能,敬请期待吧。。
13+
14+
#### Fixed
15+
1. 修复了线性布局中的子视图设置为weight=1来均分布局视图的尺寸时,有可能导致产生中间缝隙的BUG。以及子视图的总尺寸和布局视图尺寸不相等的BUG。
16+
2. 修复了当对布局视图进行多点触摸且设置了布局视图的触摸事件时,有可能会对对应的触摸动作不调用而产生触摸状态无法被恢复的问题。
17+
3. 调整了将原始逻辑点转化为可显示逻辑点的算法,老算法计算可能不精确。
18+
619
## [V1.4.1](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.4.1)(2017/6/22)
720
#### Fixed
821
1. 修复了布局视图套布局视图,然后都具有wrapContentWidth或者wrapContentHeight属性时界面有可能进入死循环的问题,尤其是iPhonePlus设备。
@@ -229,7 +242,7 @@ MyTableLayout|colSpacing|subviewHSpace
229242
#### Added
230243
1. 布局视图添加了新方法`-(CGRect)subview:(UIView*)subview estimatedRectInLayoutSize:(CGSize)size`用来评估一个将要加入布局视图的子视图的frame值。这个方法通常用来实现一些子视图在布局视图之间移动的动画效果的能力。具体例子参见(DEMO:AllTest4ViewController
231244

232-
####Changed
245+
#### Changed
233246
1. 优化了当将一个布局视图作为视图控制器的根视图时(self.view)的一些属性设置可能导致约束冲突,和可能导致将控制器中的视图加入到一个滚动视图时无法滚动的问题。
234247
2. 将线性布局`MyLinearLayout`中的shrinkType属性的默认值由原来的`MySubviewsShrink_Average`改为了`MySubviewsShrink_None`,也就是默认是不压缩的。
235248
3. 修正了相对布局中的子视图设置`useFrame`为YES时,子视图无法自由控制自己的frame的问题。
@@ -355,7 +368,7 @@ MyTableLayout|colSpacing|subviewHSpace
355368
#### Fixed
356369
1. 优化代码,修复一个设置布局尺寸**MyLayoutDime**`uBound,lBound`方法时可以指定其他任意视图的问题。
357370

358-
##[V1.2.5](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.2.5)(2016/10/8)
371+
## [V1.2.5](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.2.5)(2016/10/8)
359372

360373
#### Updated
361374
1. 优化了`beginLayoutBlock``endLayoutBlock`的调用时机,以及解决了可能这两个block块会出现循环引用的问题,同时优化了`viewLayoutCompleteBlock`可能会出现循环引用的问题
@@ -414,7 +427,7 @@ MyTableLayout|colSpacing|subviewHSpace
414427
1. 修正了相对布局中子视图隐藏时,相关子视图重新排列布局可能导致不正确的问题。相对布局中子视图隐藏时其他视图重新排列布局的算法是:隐藏的子视图的尺寸设置为0,所以依赖隐藏的子视图的边距依赖无效,变为依赖隐藏子视图所依赖的边距。
415428

416429

417-
##[V1.2.0](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.2.0)(2016/6/13)
430+
## [V1.2.0](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.2.0)(2016/6/13)
418431

419432
#### Fixed
420433
1. 修复了垂直线性布局中同时设置`myLeftMargin,myRightMargin`并且设置了`gravity=MyMarginGravity_Horz_Center`时前者设置失效的问题。水平线性布局亦然。
@@ -461,7 +474,7 @@ MyTableLayout|colSpacing|subviewHSpace
461474
2. 修正了相对布局嵌套其他布局时,高度评估方法可能不正确的问题。
462475
3. 修正了线性布局在计算高度和宽度时的一个问题。
463476

464-
##[V1.1.6](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.1.6)(2016/5/3)
477+
## [V1.1.6](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.1.6)(2016/5/3)
465478

466479
1. **MyLayoutDime**类的`equalTo`方法添加可以等于自身的功能。比如`a.widthDime.equalTo(a.widthDime).add(10);` 表示视图a的最终宽度等于其本身内容的宽度再加上10. 这种设置方法不会造成循环引用,主要用于那些需要在自身内容尺寸基础上再扩展尺寸的场景,(具体见: FLLTest2ViewController).
467480
2. 流式布局**MyFlowLayout**中的内容填充布局为了解决每行内容的填充空隙问题,增加了拉伸间距,拉伸尺寸,以及自动排列三种功能。拉伸间距需要设置属性`gravity`的值为`MyMarginGravity_Horz_Fill`或者`MyMarginGravity_Vert_Fill`;拉伸尺寸需要设置属性`averageArrange`的值为YES;自动排列则需要设置属性`autoArrange`的值为YES。(具体见*FLLTest2ViewController)。
@@ -482,16 +495,16 @@ MyTableLayout|colSpacing|subviewHSpace
482495
6. 优化了速度和性能的问题。
483496

484497

485-
##[V1.1.4](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.1.4)(2016/3/10)
498+
## [V1.1.4](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.1.4)(2016/3/10)
486499
1. 修正了尺寸评估函数`estimateLayoutRect`的一个多层嵌套是无法正确评估尺寸的BUG。
487500
2. 添加了属性`myMargin`用来简单快速的设置myLeftMarign,myTopMargin,myRightMargin,myBottomMargin都是相等的值。
488501
3. 增加了`MyDimeScale`这个工具类,用来实现不同屏幕的尺寸和位置的缩放的功能,加入我们的UI给我们的是iPhone6的设计图,并指定了某个视图的高度为100但又同时希望在iPhone5上高度缩小,而在iPhone6Plus上高度增加,则可以通过`[MyDimeScale scale:100]`得到各种屏幕的缩放后的值了。
489502

490503

491-
##[V1.1.3](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.1.3)(2016/2/22)
504+
## [V1.1.3](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.1.3)(2016/2/22)
492505
1. 对SizeClass支持和竖屏`MySizeClass_Portrait`和横屏`MySizeClass_Landscape`。以便支持单独的横屏和竖屏的界面适配,尤其是对iPad设备的横竖屏进行区分适配。
493506

494-
##[V1.1.2](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.1.2)(2016/2/18)
507+
## [V1.1.2](https://github.com/youngsoft/MyLinearLayout/releases/tag/1.1.2)(2016/2/18)
495508
1. 全面升级,新增加了对**SizeClass**的支持,通过**SizeClass**的功能可以为苹果的不同尺寸的设备提供完美的适配功能,对**SizeClass**的支持,是在苹果的**SizeClass**能力上支持的,因此只有iOS8以上的版本才支持SizeClass.
496509
2. 流式布局**MyFlowLayout**增加了按内容填充约束的方式的布局,当`arrangedCount`设置为0时则表示按内容约束方式进行布局。
497510
3. 添加了一个新的视图扩展属性`mySize`,以便为了简化同时设置myWidth,myHeight的能力。

MyLayout.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "MyLayout"
19-
s.version = "1.4.1"
19+
s.version = "1.4.2"
2020
s.summary = "MyLayout is an iOS UI framework integrates the functions with Android,AutoLayout,SizeClass,HTML CSS float and flexbox,UIView UITableView."
2121

2222
s.description = <<-DESC
@@ -52,7 +52,7 @@ Pod::Spec.new do |s|
5252
s.author = { "欧阳大哥" => "[email protected]" }
5353
# Or just: s.author = "欧阳大哥"
5454
# s.authors = { "欧阳大哥" => "[email protected]" }
55-
# s.social_media_url = "http://blog.csdn.net/yangtiang"
55+
# s.social_media_url = "http://www.jianshu.com/u/3c9287519f58"
5656

5757
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
5858
#
@@ -75,7 +75,7 @@ Pod::Spec.new do |s|
7575
# Supports git, hg, bzr, svn and HTTP.
7676
#
7777

78-
s.source = { :git => "https://github.com/youngsoft/MyLinearLayout.git", :tag => "1.4.1" }
78+
s.source = { :git => "https://github.com/youngsoft/MyLinearLayout.git", :tag => s.version }
7979

8080

8181
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

MyLayout.xcodeproj/project.pbxproj

+2-3
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,6 @@
813813
};
814814
1840828C1B2C46E8003F378B = {
815815
CreatedOnToolsVersion = 6.3.2;
816-
DevelopmentTeam = Q5MFLFRY64;
817816
ProvisioningStyle = Automatic;
818817
};
819818
184082A51B2C46E8003F378B = {
@@ -1231,7 +1230,7 @@
12311230
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
12321231
CODE_SIGN_IDENTITY = "iPhone Developer";
12331232
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1234-
DEVELOPMENT_TEAM = Q5MFLFRY64;
1233+
DEVELOPMENT_TEAM = "";
12351234
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
12361235
INFOPLIST_FILE = "$(SRCROOT)/MyLayoutDemo/Info.plist";
12371236
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
@@ -1249,7 +1248,7 @@
12491248
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
12501249
CODE_SIGN_IDENTITY = "iPhone Developer";
12511250
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1252-
DEVELOPMENT_TEAM = Q5MFLFRY64;
1251+
DEVELOPMENT_TEAM = "";
12531252
GCC_PREPROCESSOR_DEFINITIONS = "";
12541253
INFOPLIST_FILE = "$(SRCROOT)/MyLayoutDemo/Info.plist";
12551254
IPHONEOS_DEPLOYMENT_TARGET = 8.0;

MyLayout/Lib/MyBaseLayout.m

+20-20
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,10 @@ -(BOOL)myUpdateLayoutRectInNoLayoutSuperview:(UIView*)newSuperview
24172417
{
24182418
if (lsc.widthSizeInner.dimeRelaVal.view == newSuperview)
24192419
{
2420-
rectSelf.size.width = [lsc.widthSizeInner measureWith:rectSuper.size.width];
2420+
if (lsc.widthSizeInner.dimeRelaVal.dime == MyGravity_Horz_Fill)
2421+
rectSelf.size.width = [lsc.widthSizeInner measureWith:rectSuper.size.width];
2422+
else
2423+
rectSelf.size.width = [lsc.widthSizeInner measureWith:rectSuper.size.height];
24212424
}
24222425
else
24232426
{
@@ -2471,7 +2474,10 @@ -(BOOL)myUpdateLayoutRectInNoLayoutSuperview:(UIView*)newSuperview
24712474
{
24722475
if (lsc.heightSizeInner.dimeRelaVal.view == newSuperview)
24732476
{
2474-
rectSelf.size.height = [lsc.heightSizeInner measureWith:rectSuper.size.height];
2477+
if (lsc.heightSizeInner.dimeRelaVal.dime == MyGravity_Vert_Fill)
2478+
rectSelf.size.height = [lsc.heightSizeInner measureWith:rectSuper.size.height];
2479+
else
2480+
rectSelf.size.height = [lsc.heightSizeInner measureWith:rectSuper.size.width];
24752481
}
24762482
else
24772483
{
@@ -3024,13 +3030,16 @@ @implementation MyTouchEventDelegate
30243030
}
30253031

30263032
BOOL _hasBegin;
3033+
__weak MyBaseLayout * _currentLayout;
30273034

30283035
-(instancetype)initWithLayout:(MyBaseLayout *)layout
30293036
{
30303037
self = [self init];
30313038
if (self != nil)
30323039
{
30333040
_layout = layout;
3041+
_oldAlpha = 1;
3042+
_currentLayout = nil;
30343043
}
30353044

30363045
return self;
@@ -3039,10 +3048,11 @@ -(instancetype)initWithLayout:(MyBaseLayout *)layout
30393048
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
30403049
{
30413050
UITouch *touch = [touches anyObject];
3042-
3051+
30433052
if (_layout != nil && _target != nil && !_forbidTouch && touch.tapCount == 1 && !_hasBegin)
30443053
{
30453054
_hasBegin = YES;
3055+
_currentLayout = _layout;
30463056
_canCallAction = YES;
30473057
_beginPoint = [touch locationInView:_layout];
30483058

@@ -3055,7 +3065,7 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
30553065

30563066
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
30573067
{
3058-
if (_layout != nil && _target != nil && _hasBegin)
3068+
if (_layout != nil && _target != nil && _hasBegin && (_layout == _currentLayout || _currentLayout == nil))
30593069
{
30603070
if (_canCallAction)
30613071
{
@@ -3107,7 +3117,7 @@ -(void)doTargetAction:(UITouch*)touch
31073117
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
31083118
{
31093119

3110-
if (_layout != nil && _target != nil && _hasBegin)
3120+
if (_layout != nil && _target != nil && _hasBegin && (_layout == _currentLayout || _currentLayout == nil))
31113121
{
31123122
//设置一个延时.
31133123
_forbidTouch = YES;
@@ -3117,17 +3127,19 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
31173127
#pragma clang diagnostic pop
31183128

31193129
_hasBegin = NO;
3130+
_currentLayout = nil;
31203131
}
31213132
}
31223133

31233134
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
31243135
{
31253136

3126-
if (_layout != nil && _target != nil && _hasBegin)
3137+
if (_layout != nil && _target != nil && _hasBegin && (_layout == _currentLayout || _currentLayout == nil))
31273138
{
31283139
[self myResetTouchHighlighted];
31293140

31303141
_hasBegin = NO;
3142+
_currentLayout = nil;
31313143

31323144
if (!_hasDoCancel)
31333145
{
@@ -3641,22 +3653,10 @@ CGFloat _myRoundNumber(CGFloat f)
36413653
if (f == 0 || f == CGFLOAT_MAX || f == -CGFLOAT_MAX)
36423654
return f;
36433655

3644-
int fi = rint(f);
3645-
if (_myCGFloatEqual(f, fi))
3646-
return fi;
3647-
3648-
//按精度四舍五入
3649-
//正确的算法应该是。x = 0; y = 0; 0<x<0.5 y = 0; x = 0.5 y = 0.5; 0.5<x<1 y = 0.5; x=1 y = 1;
3650-
36513656
if (f < 0)
3652-
{
3653-
return ceil(f * _myMyLayoutScale) / _myMyLayoutScale;
3654-
}
3657+
return ceil(fma(f, _myMyLayoutScale, -0.5)) / _myMyLayoutScale;
36553658
else
3656-
{
3657-
return floor(f *_myMyLayoutScale) / _myMyLayoutScale;
3658-
}
3659-
3659+
return floor(fma(f, _myMyLayoutScale, 0.5)) / _myMyLayoutScale;
36603660
}
36613661

36623662
CGRect _myRoundRectForLayout(CGRect rect)

MyLayout/Lib/MyFrameLayout.m

+4
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ -(void)myCalcSubViewRect:(UIView*)sbv
173173

174174
if (sbvsc.widthSizeInner.dimeRelaVal == self.widthSizeInner)
175175
rect.size.width = [sbvsc.widthSizeInner measureWith:selfSize.width - paddingLeading - paddingTrailing];
176+
else if (sbvsc.widthSizeInner.dimeRelaVal == self.heightSizeInner)
177+
rect.size.width = [sbvsc.widthSizeInner measureWith:selfSize.height - paddingTop - paddingBottom];
176178
else
177179
rect.size.width = [sbvsc.widthSizeInner measureWith:sbvsc.widthSizeInner.dimeRelaVal.view.estimatedRect.size.width];
178180
}
@@ -190,6 +192,8 @@ -(void)myCalcSubViewRect:(UIView*)sbv
190192
{//高度等于其他依赖的视图
191193
if (sbvsc.heightSizeInner.dimeRelaVal == self.heightSizeInner)
192194
rect.size.height = [sbvsc.heightSizeInner measureWith:selfSize.height - paddingTop - paddingBottom];
195+
else if (sbvsc.heightSizeInner.dimeRelaVal == self.widthSizeInner)
196+
rect.size.height = [sbvsc.heightSizeInner measureWith:selfSize.width - paddingLeading - paddingTrailing];
193197
else
194198
rect.size.height = [sbvsc.heightSizeInner measureWith:sbvsc.heightSizeInner.dimeRelaVal.view.estimatedRect.size.height];
195199
}

MyLayout/Lib/MyLayout.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*/
3838

3939

40-
//Current version is 1.4.1, please open: https://github.com/youngsoft/MyLinearLayout/blob/master/CHANGELOG.md to show the changes.
40+
//Current version is 1.4.2, please open: https://github.com/youngsoft/MyLinearLayout/blob/master/CHANGELOG.md to show the changes.
4141

4242

4343
#ifndef MyLayout_MyLayout_h

MyLayout/Lib/MyLinearLayout.m

+22-6
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,10 @@ -(CGSize)myLayoutSubviewsForVert:(CGSize)selfSize sbs:(NSArray*)sbs lsc:(MyLinea
681681
//分别处理相对顶部间距和绝对顶部间距
682682
if ([self myIsRelativePos:topSpace])
683683
{
684-
topSpace = (topSpace / totalWeight) * floatingHeight;
684+
CGFloat topSpaceWeight = topSpace;
685+
topSpace = _myRoundNumber((topSpace / totalWeight) * floatingHeight);
686+
floatingHeight -= topSpace;
687+
totalWeight -= topSpaceWeight;
685688
if (_myCGFloatLessOrEqual(topSpace, 0))
686689
topSpace = 0;
687690
}
@@ -705,7 +708,9 @@ -(CGSize)myLayoutSubviewsForVert:(CGSize)selfSize sbs:(NSArray*)sbs lsc:(MyLinea
705708
//分别处理相对高度和绝对高度
706709
if (weight > 0)
707710
{
708-
CGFloat h = (weight / totalWeight) * floatingHeight;
711+
CGFloat h = _myRoundNumber((weight / totalWeight) * floatingHeight);
712+
floatingHeight -= h;
713+
totalWeight -= weight;
709714
if (_myCGFloatLessOrEqual(h, 0))
710715
h = 0;
711716

@@ -717,7 +722,10 @@ -(CGSize)myLayoutSubviewsForVert:(CGSize)selfSize sbs:(NSArray*)sbs lsc:(MyLinea
717722
//分别处理相对底部间距和绝对底部间距
718723
if ([self myIsRelativePos:bottomSpace])
719724
{
720-
bottomSpace = (bottomSpace / totalWeight) * floatingHeight;
725+
CGFloat bottomSpaceWeight = bottomSpace;
726+
bottomSpace = _myRoundNumber((bottomSpace / totalWeight) * floatingHeight);
727+
floatingHeight -= bottomSpace;
728+
totalWeight -= bottomSpaceWeight;
721729
if ( _myCGFloatLessOrEqual(bottomSpace, 0))
722730
bottomSpace = 0;
723731

@@ -1013,7 +1021,10 @@ -(CGSize)myLayoutSubviewsForHorz:(CGSize)selfSize sbs:(NSArray*)sbs lsc:(MyLinea
10131021
//计算出先对左边边距和绝对左边边距
10141022
if ([self myIsRelativePos:leadingSpace])
10151023
{
1016-
leadingSpace = (leadingSpace / totalWeight) * floatingWidth;
1024+
CGFloat leadingSpaceWeight = leadingSpace;
1025+
leadingSpace = _myRoundNumber((leadingSpace / totalWeight) * floatingWidth);
1026+
floatingWidth -= leadingSpace;
1027+
totalWeight -= leadingSpaceWeight;
10171028
if (_myCGFloatLessOrEqual(leadingSpace, 0))
10181029
leadingSpace = 0;
10191030

@@ -1039,7 +1050,9 @@ -(CGSize)myLayoutSubviewsForHorz:(CGSize)selfSize sbs:(NSArray*)sbs lsc:(MyLinea
10391050

10401051
if (weight > 0)
10411052
{
1042-
CGFloat w = (weight / totalWeight) * floatingWidth;
1053+
CGFloat w = _myRoundNumber((weight / totalWeight) * floatingWidth);
1054+
floatingWidth -= w;
1055+
totalWeight -= weight;
10431056
if (_myCGFloatLessOrEqual(w, 0))
10441057
w = 0;
10451058

@@ -1053,7 +1066,10 @@ -(CGSize)myLayoutSubviewsForHorz:(CGSize)selfSize sbs:(NSArray*)sbs lsc:(MyLinea
10531066
//计算相对的右边边距和绝对的右边边距
10541067
if ([self myIsRelativePos:trailingSpace])
10551068
{
1056-
trailingSpace = (trailingSpace / totalWeight) * floatingWidth;
1069+
CGFloat trailingSpaceWeight = trailingSpace;
1070+
trailingSpace = _myRoundNumber((trailingSpace / totalWeight) * floatingWidth);
1071+
floatingWidth -= trailingSpace;
1072+
totalWeight -= trailingSpaceWeight;
10571073
if (_myCGFloatLessOrEqual(trailingSpace, 0))
10581074
trailingSpace = 0;
10591075
}

MyLayout/Lib/MyTableLayout.h

+13
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,23 @@
8585
*/
8686
-(MyLinearLayout*)addRow:(CGFloat)rowSize colSize:(CGFloat)colSize;
8787

88+
89+
/**
90+
添加行并指定列的数量,这样每列将会平分行的宽度或者高度。
91+
92+
@param rowSize 参考上面addRow方法的定义
93+
@param colCount 指定行里面列的数量,必须大于0
94+
@return 返回行布局视图对象。
95+
*/
96+
-(MyLinearLayout*)addRow:(CGFloat)rowSize colCount:(NSUInteger)colCount;
97+
98+
8899
/**
89100
* 在指定的位置插入一个新行
90101
*/
91102
-(MyLinearLayout*)insertRow:(CGFloat)rowSize colSize:(CGFloat)colSize atIndex:(NSInteger)rowIndex;
103+
-(MyLinearLayout*)insertRow:(CGFloat)rowSize colCount:(NSUInteger)colCount atIndex:(NSInteger)rowIndex;
104+
92105

93106
/**
94107
* 删除一行

0 commit comments

Comments
 (0)