MyLinearLayout icon indicating copy to clipboard operation
MyLinearLayout copied to clipboard

MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use L...

Results 34 MyLinearLayout issues
Sort by recently updated
recently updated
newest added

首先感谢作者的NB框架~ 问题:demo中朋友圈布局抖动 复现步骤:当滑动到列表最底部后向数据源中增加新的数据,此时向下滑动tableview,在滑动到已经加载过的数据时布局会出现抖动

UIButton *view = [UIButton.alloc initWithFrame:(CGRectMake(20, 100, 60, 40))]; view.backgroundColor = UIColor.orangeColor; [MyRelativeLayout.view addSubview:view]; 目前view的显示 frame 为 (0, 0, 60, 40) 期望view 的显示 frame 为 (20, 100, 60, 40) ![5EDBB9537212CC93C4AFA9E85FBCE6F9](https://user-images.githubusercontent.com/18479092/156339625-6d70a1b1-2883-4f78-8732-73055142da9e.jpg) ![4439E273F9BFDF37F3481E01480DD1FC](https://user-images.githubusercontent.com/18479092/156339652-0e56d1b5-457a-4a5f-b28f-a4b97cafaab8.jpg)

性能到底怎么样,没有亲自测试过也不好评论。 但是命名很不规范让人没有使用的想法。比如说: ① S.widthSize.equalTo(@100); 暂且不说大写的S,width已经表达了宽度的含义了,为什么还要画蛇添足的在width后面加上Size?你做iOS开发的难道不清楚Size是个结构体吗? ② 再比如说A.rightPos.equalTo(@0.3); 实在不知道你这个Pos想表达什么含义,右间距还是什么别的?Masonry用mas_right来表示,CSS用margin和padding来表示,所以我实在不能理解是什么意思。 ③ C.myWidth = 50; 你这里想表达C视图的宽度,那直接c.width = 50;不就行了吗?为什么非要加上my来表达宽度的含义 ④ S.coordinateSetting.origin = CGPointMake(0.5, 0.2); coordinateSetting本身就可以用coordinate来表达含义了 ...... 命名规范的问题实在太多了,开发者设置一个视图的size根本就不会想到输入“my...”然后让IDE来提醒输入什么,而且视图的代码写多了,像这种满屏的不规范命令看起来也让人不舒服。 有些命名可能会跟系统的产生冲突,可以考虑像Masonry那样添加一个mas_的前缀来解决 建议能改进一下

使用了QMUIKit中的QMUIButton,但无法自适应宽高,以前我用masonry做约束是没问题的,能自动适应

MyFlexLayout 嵌套 MyFlexLayout 时,子视图MyFlexLayout高度和宽度设置为.width(MyLayoutSize.wrap).height(MyLayoutSize.wrap),宽度能正常适应,但是高度不正常 ![first](https://user-images.githubusercontent.com/14151009/133541000-3ce7cbe1-0415-4914-a93b-c2e3feb404d4.png) ![two](https://user-images.githubusercontent.com/14151009/133541108-37dfeb94-0bd5-4315-abaa-62426810a426.png)

子视图为自定义样式,使用Masonry布局,无法展示;demo代码如下: ``` UIView *view = [[UIView alloc] init]; view.backgroundColor = [UIColor grayColor]; UIImageView *imageView = [[UIImageView alloc] init]; imageView.backgroundColor = [UIColor redColor]; imageView.clipsToBounds = YES; imageView.layer.cornerRadius = 8; [view addSubview:imageView];...

“MyLinearLayout”是我目前用到的最好用的自动布局框架。和其他布局相比此布局框架兼容性最高。我已经将我公司的全部项目用“MyLinearLayout”布局,迁移途中遇到了部分问题但问题几乎都是代码规范问题。所以我希望“MyLinearLayout”永远维护下去。

目前在栅格布局中, 对子视图 进行隐藏 scrollView.visibility = MyVisibility_Gone;; 但是依旧占位 ![image](https://user-images.githubusercontent.com/18479092/121664370-fe69e980-cad9-11eb-83c9-f0a3315fdea6.png) 希望当设置MyVisibility_Gone时,可以实现不占位

///设置触摸时的高亮 - (void)mySetTouchHighlighted { if (self.highlightedOpacity != 0) { _oldAlpha = self.layout.alpha; self.layout.alpha = 1 - self.highlightedOpacity; } if (self.highlightedBackgroundColor != nil) { _oldBackgroundColor = self.layout.backgroundColor; self.layout.backgroundColor = self.highlightedBackgroundColor; }...