U
U
Uali2019-06-11 22:25:51
iOS
Uali, 2019-06-11 22:25:51

How to make ScrollView scroll to the end?

5cffff70db5f0867644935.gif
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

1 answer(s)
I
Ivan Vorobei, 2019-06-11
@ivanvorobei

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 question

Ask a Question

731 491 924 answers to any question