Resizing UITableView to fit content

Swift 5 and 4.2 solution without KVO, DispatchQueue, or setting constraints yourself. This solution is based on Gulz’s answer. 1) Create a subclass of UITableView: import UIKit final class ContentSizedTableView: UITableView { override var contentSize:CGSize { didSet { invalidateIntrinsicContentSize() } } override var intrinsicContentSize: CGSize { layoutIfNeeded() return CGSize(width: UIView.noIntrinsicMetric, height: contentSize.height) } } 2) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)