swift 中使用 Masonry 使用方式

            titleView = UIView()

            self.view.addSubview(titleView)

            

            titleView.mas_makeConstraints({ (makeBlock) in

                let make = makeBlock! as MASConstraintMaker 

                make.top.equalTo()(view)

                make.left.equalTo()(view)

                make.right.equalTo()(view)

                make.height.mas_equalTo()(system_titleViewHeight)

            })

猜你喜欢

转载自blog.csdn.net/sky_long_fly/article/details/54313836
今日推荐