We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
QMUITextView *textView = [[QMUITextView alloc] init]; textView.placeholder = @"abc"; [textView sizeToFit];
crash 信息:
crash 原因:
注意,由于 UIView (QMUI) 里对 setFrame: 带有 NaN 的值,Release 下会做保护,改为 0,因此发布的正式包不会出现这种问题,Debug 时会通过 QMUIConsole 或 NSAssert 体现。
由于这里用 limitWidth 也不是很妥当,所以这里改为用 placeholderLabel sizeThatFits 返回的 size.width 作为最终宽度,从而避免这个问题。
其他信息
The text was updated successfully, but these errors were encountered:
已发布 4.3.0 修复该问题。
Sorry, something went wrong.
No branches or pull requests
crash 信息:
crash 原因:
注意,由于 UIView (QMUI) 里对 setFrame: 带有 NaN 的值,Release 下会做保护,改为 0,因此发布的正式包不会出现这种问题,Debug 时会通过 QMUIConsole 或 NSAssert 体现。
由于这里用 limitWidth 也不是很妥当,所以这里改为用 placeholderLabel sizeThatFits 返回的 size.width 作为最终宽度,从而避免这个问题。
其他信息
The text was updated successfully, but these errors were encountered: