back soft

مطالب مرتبط با «how to update iphone» در back soft | نویسنده: استخدام کار

How to update NSLayoutConstraint constants, that have previously been set in code? - Swift

Vote count: 0 I'm trying to completely make my view programatically. It has a bottom view that animates up when a search query finishes with the relevant information. I've set the .bottom nslayoutconstraint of the bottom view to an optional nslayoutconstraint, first initialising it off screen in override func viewWillLayoutSubviews(). let bottomView = UIView() var bottomViewBottomConstraint: NSLayoutConstraint! override func viewDidLoad() { super.viewDidLoad() view.addSubview(bottomView) } override func viewWillLayoutSubviews() { //Bottom View Constraints bottomView.translatesAutoresizingMaskIntoConstraints = false let bottomViewLeftConstraint = NSLayoutConstraint(item: bottomView, attribute...

ادامه مطلب