You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
------------------ 原始邮件 ------------------
发件人: "youngsoft/MyLinearLayout" <notifications@github.com>;
发送时间: 2021年1月7日(星期四) 下午4:23
收件人: "youngsoft/MyLinearLayout"<MyLinearLayout@noreply.github.com>;
抄送: "朱冲"<1395958146@qq.com>;"Author"<author@noreply.github.com>;
主题: 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.
Activity
zhangle520 commentedon Jan 7, 2021
同问,兄弟,怎么解决的
ZCFade commentedon Jan 7, 2021
zhangle520 commentedon Jan 9, 2021
非常感谢,后面通过下载官方demo发现并解决了问题,这里记录一下:
以你上面的例子为参考,MyGridLayout不能直接添加在UIScrollView上,需要在UIScrollView上添加一个mylinearlayout,然后把MyGridLayout添加到mylinearlayout中就可以了
youngsoft commentedon Jan 11, 2021
应该没有这个限制,我的demo中也是有MyGridLayout添加到UIScrollView上的情况,出现问题的原因估计是您的MyGridLayout的宽度或者高度约束没有设置的原因吧。具体情况你可以把你的代码私信给我一份。