Swift iOS Set scrollView constraint below navigation bar programmatically
问题 My UIViewController is embedded in a navigation controller. I programmatically add the navigation buttons and now trying to add a scrollView below this navigation bar. The problem I'm having is this is filling the full frame size and going under the navigation bar. How do I programmatically set constraints of this scrollview? var scrollView: UIScrollView! var containerView = UIView() override func viewDidLoad() { super.viewDidLoad() self.navigationItem.title = "Filters" // add some buttons on