BG

Size: a a a
BG

BG
E
M
Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to install constraint on view. Does the constraint reference something from outside the subtree of the view? That's illegal."V
Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to install constraint on view. Does the constraint reference something from outside the subtree of the view? That's illegal."M
DispatchQueue.main.async {
tableView.backgroundView = emptyView
tableView.separatorStyle = .none
}V
DispatchQueue.main.async {
tableView.backgroundView = emptyView
tableView.separatorStyle = .none
}M
EK
EK
В
M
NSLayoutConstraint:let titleLabel = UILabel()
emptyView.addSubview(titleLabel)
titleLabel.translatesAutoresizingMaskIntoConstraints = false
titleLabel.topAnchor.constraint(equalTo: spinnerImageView.bottomAnchor, constant: 46).isActive = true
titleLabel.centerXAnchor.constraint(equalTo: emptyView.centerXAnchor).isActive = true
В

В
NSLayoutConstraint:let titleLabel = UILabel()
emptyView.addSubview(titleLabel)
titleLabel.translatesAutoresizingMaskIntoConstraints = false
titleLabel.topAnchor.constraint(equalTo: spinnerImageView.bottomAnchor, constant: 46).isActive = true
titleLabel.centerXAnchor.constraint(equalTo: emptyView.centerXAnchor).isActive = true
spinnerImageView.addConstraints([horizontalConstraint, verticalConstraint])M
spinnerImageView.addConstraints([horizontalConstraint, verticalConstraint])В
M
В
В