I am trying to get the height of WKWeb view when it gets loaded and change the height of the cell in table view using a delegate method.The below code works well till iOS 12 .
When I try to run in iOS 13 beta , the cell height keeps increasing as the intrinsic size keeps on increasing by one every time.
Is there any way to stop this ?
override var intrinsicContentSize: CGSize {
print("intrinsic content size id \(self.scrollView.contentSize.height)")
self.delegate?.changeHeight(self.scrollView.contentSize.height,self.indexpathOfCell)
return self.scrollView.contentSize
}
该问题已在 Xcode11 beta7 中得到修复,并且内在内容大小按预期工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.