Answer the question
In order to leave comments, you need to log in
How to make ScrollView scroll to the end?
when I open the time of work, then my scroll does not reach the end
@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
}
}
Answer the question
In order to leave comments, you need to log in
After opening the work time, you need to recalculate the contentSize of the UIScrollView. The code you provided just hides the views.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question