-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grid添加在ScrollView上模板上的点击事件无法响应 #130
Comments
同问,兄弟,怎么解决的 |
点击事件添加在模板上 然后试图克隆模板
…------------------ 原始邮件 ------------------
发件人: "youngsoft/MyLinearLayout" <[email protected]>;
发送时间: 2021年1月7日(星期四) 下午4:23
收件人: "youngsoft/MyLinearLayout"<[email protected]>;
抄送: "朱冲"<[email protected]>;"Author"<[email protected]>;
主题: Re: [youngsoft/MyLinearLayout] Grid添加在ScrollView上模板上的点击事件无法响应 (#130)
同问,兄弟,怎么解决的
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
非常感谢,后面通过下载官方demo发现并解决了问题,这里记录一下: |
应该没有这个限制,我的demo中也是有MyGridLayout添加到UIScrollView上的情况,出现问题的原因估计是您的MyGridLayout的宽度或者高度约束没有设置的原因吧。具体情况你可以把你的代码私信给我一份。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
` UIScrollView *scrollView = [UIScrollView new];
scrollView.backgroundColor = UIColor.whiteColor;
scrollView.frame = CGRectMake(0, 0, kwidth, kheight);
scrollView.userInteractionEnabled = YES;
[self.view addSubview:scrollView];
self.view = scrollView;
The text was updated successfully, but these errors were encountered: