Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

希望MyRelativeLayout添加对子视图未设置布局时的 frame 的支持 #148

Open
kchtin opened this issue Mar 2, 2022 · 0 comments

Comments

@kchtin
Copy link

kchtin commented Mar 2, 2022

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

4439E273F9BFDF37F3481E01480DD1FC

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant