Commit 6d7b5b14 authored by Steven杜宇's avatar Steven杜宇

// 0913 UI

parent 309e450d
...@@ -204,6 +204,18 @@ class YHCommunityViewController: YHBaseViewController { ...@@ -204,6 +204,18 @@ class YHCommunityViewController: YHBaseViewController {
make.left.equalTo(self.friendsBtn.snp.right).offset(-8) make.left.equalTo(self.friendsBtn.snp.right).offset(-8)
make.top.equalTo(self.friendsBtn.snp.top).offset(-8) make.top.equalTo(self.friendsBtn.snp.top).offset(-8)
} }
segmentedView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.top.equalTo(k_Height_safeAreaInsetsTop())
make.height.equalTo(48.0)
}
listContainerView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.top.equalTo(k_Height_safeAreaInsetsTop() + 48.0)
make.bottom.equalTo(-k_Height_TabBar)
}
} }
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
...@@ -220,13 +232,6 @@ class YHCommunityViewController: YHBaseViewController { ...@@ -220,13 +232,6 @@ class YHCommunityViewController: YHBaseViewController {
navigationController?.interactivePopGestureRecognizer?.isEnabled = true navigationController?.interactivePopGestureRecognizer?.isEnabled = true
} }
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
segmentedView.frame = CGRect(x: 0, y: k_Height_safeAreaInsetsTop(), width: view.bounds.size.width, height: 48)
listContainerView.frame = CGRect(x: 0, y: k_Height_safeAreaInsetsTop() + 48, width: view.bounds.size.width, height: view.bounds.size.height - 48 - k_Height_safeAreaInsetsTop())
}
func requestFriendRequest() { func requestFriendRequest() {
if YHLoginManager.shared.isLogin() { if YHLoginManager.shared.isLogin() {
self.friendViewModel.getMyFriendList { success, error in self.friendViewModel.getMyFriendList { success, error in
......
...@@ -166,7 +166,7 @@ class YHMatchUserViewController: YHBaseViewController { ...@@ -166,7 +166,7 @@ class YHMatchUserViewController: YHBaseViewController {
bgImgV.snp.makeConstraints { make in bgImgV.snp.makeConstraints { make in
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
make.top.equalTo(-k_Height_statusBar()-48.0) make.top.equalTo(-k_Height_statusBar()-48.0)
make.bottom.equalToSuperview() make.bottom.equalToSuperview().offset(k_Height_TabBar)
} }
launchLottieView.snp.makeConstraints { make in launchLottieView.snp.makeConstraints { make in
...@@ -200,7 +200,7 @@ class YHMatchUserViewController: YHBaseViewController { ...@@ -200,7 +200,7 @@ class YHMatchUserViewController: YHBaseViewController {
make.left.equalTo(24) make.left.equalTo(24)
make.right.equalTo(-24) make.right.equalTo(-24)
make.height.equalTo(48.0) make.height.equalTo(48.0)
make.bottom.equalTo(-k_Height_safeAreaInsetsBottom()-48-60) make.bottom.equalTo(-60)
} }
self.bottomLabel.snp.makeConstraints { make in self.bottomLabel.snp.makeConstraints { make in
......
...@@ -127,7 +127,7 @@ class YHMessageListVC: YHBaseViewController { ...@@ -127,7 +127,7 @@ class YHMessageListVC: YHBaseViewController {
tableView.snp.makeConstraints { make in tableView.snp.makeConstraints { make in
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
make.top.equalToSuperview().offset(14) make.top.equalToSuperview().offset(14)
make.bottom.equalToSuperview().offset(-k_Height_TabBar) make.bottom.equalToSuperview()
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment