我在滚动到视图控制器底部时遇到问题。当我打开明细工作日时,我添加了常量218,在此之后,我的vc并没有结束。
当我点击详细工作日时,我的代码看起来像:
@objc func showDetailWork(sender: UITapGestureRecognizer) {
if selectedPartnerView.detailWorkView.isHidden {
selectedPartnerView.detailWorkView.isHidden = false
selectedPartnerView.moreLabel.isHidden = true
selectedPartnerView.firstWorkView.isHidden = true
selectedPartnerView.workViewConstraint.constant = 218
selectedPartnerView.moreView.isHidden = true
} else {
selectedPartnerView.detailWorkView.isHidden = true
selectedPartnerView.moreLabel.isHidden = false
selectedPartnerView.firstWorkView.isHidden = false
selectedPartnerView.workViewConstraint.constant = 70
selectedPartnerView.moreView.isHidden = false
}
}