我如何解决滚动到底部Swift

时间:2019-06-11 19:17:29

标签: ios swift snapkit

我在滚动到视图控制器底部时遇到问题。当我打开明细工作日时,我添加了常量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
    }
}

enter image description here

0 个答案:

没有答案