Skip to content
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

请问如何给content添加点击事件 #199

Open
Lishuo15266176690 opened this issue Oct 23, 2024 · 2 comments
Open

请问如何给content添加点击事件 #199

Lishuo15266176690 opened this issue Oct 23, 2024 · 2 comments

Comments

@Lishuo15266176690
Copy link

求助

.LeeAddContent(^(UILabel * _Nonnull label) 只能用UILabel不能使用YYLabel

先生成YYLabel用自定义视图展示的话 如何先获取到[LEEAlert alert].config的内容宽度以计算YYLabel的高度呢?

@Lishuo15266176690
Copy link
Author

我现在的方案是用280 - 20 * 2 可否有只读属性获取[LEEAlert alert].config的内容宽度呢?

@lixiang1994
Copy link
Owner

Alert的最大宽度有默认实现, 也是固定宽度, 固定宽度直接计算就行

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

No branches or pull requests

2 participants