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

UISearchBar重复约束导致 push进入时键盘弹起后马上收起 #247

Closed
JzwOnly opened this issue May 8, 2021 · 1 comment
Closed

Comments

@JzwOnly
Copy link

JzwOnly commented May 8, 2021

Swift
iOS13.5
进入页面键盘弹起后马上又收起,调用栈显示系统调用的resignFirstResponder
image

约束问题

[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
	<NSAutoresizingMaskLayoutConstraint:0x281df0320 h=--& v=--& UISearchBar:0x1170211e0.minX == 2   (active, names: '|':UIView:0x11701e130 )>,
	<NSLayoutConstraint:0x281d26f30 H:|-(0)-[UISearchBar:0x1170211e0](LTR)   (active, names: '|':UIView:0x11701e130 )>
)
@JzwOnly JzwOnly closed this as completed Jun 17, 2021
@GPX-NSlog
Copy link

问题解决了吗

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