diff --git a/NEChatUIKit/NEChatUIKit.podspec b/NEChatUIKit/NEChatUIKit.podspec index ded0738e..f3c0ea3b 100644 --- a/NEChatUIKit/NEChatUIKit.podspec +++ b/NEChatUIKit/NEChatUIKit.podspec @@ -1,4 +1,4 @@ -# +Az # # Be sure to run `pod spec lint NEChatUIKit.podspec' to ensure this is a # valid spec and to remove all comments including this before submitting the s. # @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = 'NEChatUIKit' - s.version = '9.6.0' + s.version = '9.6.1' s.summary = 'Chat Module of IM.' # This description is used to generate tags and improve search results. diff --git a/NEChatUIKit/NEChatUIKit/Classes/Base/BaseViewController/ChatBaseViewController.swift b/NEChatUIKit/NEChatUIKit/Classes/Base/BaseViewController/ChatBaseViewController.swift index a49a229d..8fa4de27 100644 --- a/NEChatUIKit/NEChatUIKit/Classes/Base/BaseViewController/ChatBaseViewController.swift +++ b/NEChatUIKit/NEChatUIKit/Classes/Base/BaseViewController/ChatBaseViewController.swift @@ -36,6 +36,7 @@ open class ChatBaseViewController: UIViewController, UIGestureRecognizerDelegate if let useSystemNav = NEConfigManager.instance.getParameter(key: useSystemNav) as? Bool, useSystemNav { navigationController?.isNavigationBarHidden = false setupBackUI() + topConstant = NEConstant.navigationAndStatusHeight } else { navigationController?.isNavigationBarHidden = true topConstant = NEConstant.navigationAndStatusHeight diff --git a/NEChatUIKit/NEChatUIKit/Classes/FunUI/Controller/FunReadViewController.swift b/NEChatUIKit/NEChatUIKit/Classes/FunUI/Controller/FunReadViewController.swift index 3d2d7c7e..bb71de57 100644 --- a/NEChatUIKit/NEChatUIKit/Classes/FunUI/Controller/FunReadViewController.swift +++ b/NEChatUIKit/NEChatUIKit/Classes/FunUI/Controller/FunReadViewController.swift @@ -19,7 +19,7 @@ open class FunReadViewController: NEBaseReadViewController { readTableView.register( FunUserTableViewCell.self, - forCellReuseIdentifier: "\(FunUserTableViewCell.self)" + forCellReuseIdentifier: "\(UserBaseTableViewCell.self)" ) readTableView.rowHeight = 64 diff --git a/NEChatUIKit/NEChatUIKit/Classes/NormalUI/Controller/ReadViewController.swift b/NEChatUIKit/NEChatUIKit/Classes/NormalUI/Controller/ReadViewController.swift index 2091e680..1b5ec91c 100644 --- a/NEChatUIKit/NEChatUIKit/Classes/NormalUI/Controller/ReadViewController.swift +++ b/NEChatUIKit/NEChatUIKit/Classes/NormalUI/Controller/ReadViewController.swift @@ -28,7 +28,7 @@ open class ReadViewController: NEBaseReadViewController { readTableView.register( UserTableViewCell.self, - forCellReuseIdentifier: "\(UserTableViewCell.self)" + forCellReuseIdentifier: "\(UserBaseTableViewCell.self)" ) readTableView.rowHeight = 62 } diff --git a/NEContactUIKit/NEContactUIKit.podspec b/NEContactUIKit/NEContactUIKit.podspec index 87599377..9994fff5 100644 --- a/NEContactUIKit/NEContactUIKit.podspec +++ b/NEContactUIKit/NEContactUIKit.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'NEContactUIKit' - s.version = '9.6.0' + s.version = '9.6.1' s.summary = 'Netease XKit' # This description is used to generate tags and improve search results. diff --git a/NEContactUIKit/NEContactUIKit/Classes/Validation/Controller/NEBaseValidationMessageViewController.swift b/NEContactUIKit/NEContactUIKit/Classes/Validation/Controller/NEBaseValidationMessageViewController.swift index 6cb42311..334e21de 100644 --- a/NEContactUIKit/NEContactUIKit/Classes/Validation/Controller/NEBaseValidationMessageViewController.swift +++ b/NEContactUIKit/NEContactUIKit/Classes/Validation/Controller/NEBaseValidationMessageViewController.swift @@ -73,7 +73,7 @@ open class NEBaseValidationMessageViewController: NEBaseContactViewController { tableView.separatorStyle = .none NSLayoutConstraint.activate([ - tableView.topAnchor.constraint(equalTo: view.topAnchor, constant: NEConstant.navigationAndStatusHeight), + tableView.topAnchor.constraint(equalTo: view.topAnchor, constant: topConstant), tableView.leftAnchor.constraint(equalTo: view.leftAnchor), tableView.rightAnchor.constraint(equalTo: view.rightAnchor), tableView.bottomAnchor.constraint(equalTo: view.bottomAnchor), diff --git a/NEContactUIKit/NEContactUIKit/Classes/Views/NEBaseContactViewController.swift b/NEContactUIKit/NEContactUIKit/Classes/Views/NEBaseContactViewController.swift index e0483136..8e8654f2 100644 --- a/NEContactUIKit/NEContactUIKit/Classes/Views/NEBaseContactViewController.swift +++ b/NEContactUIKit/NEContactUIKit/Classes/Views/NEBaseContactViewController.swift @@ -33,6 +33,7 @@ open class NEBaseContactViewController: UIViewController, UIGestureRecognizerDel if let useSystemNav = NEConfigManager.instance.getParameter(key: useSystemNav) as? Bool, useSystemNav { navigationController?.isNavigationBarHidden = false setupBackUI() + topConstant = 0 } else { navigationController?.isNavigationBarHidden = true topConstant = NEConstant.navigationAndStatusHeight diff --git a/NEContactUIKit/NEContactUIKit/Classes/Views/NEBaseContactsViewController.swift b/NEContactUIKit/NEContactUIKit/Classes/Views/NEBaseContactsViewController.swift index f1db284f..40cc383c 100644 --- a/NEContactUIKit/NEContactUIKit/Classes/Views/NEBaseContactsViewController.swift +++ b/NEContactUIKit/NEContactUIKit/Classes/Views/NEBaseContactsViewController.swift @@ -105,6 +105,12 @@ open class NEBaseContactsViewController: UIViewController, UITableViewDelegate, } override open func viewWillAppear(_ animated: Bool) { + if let useSystemNav = NEConfigManager.instance.getParameter(key: useSystemNav) as? Bool, useSystemNav { + navigationController?.isNavigationBarHidden = false + } else { + navigationController?.isNavigationBarHidden = true + } + // 刷新数据 viewModel.reLoadData { [weak self] error, userSectionCount in self?.emptyView.isHidden = userSectionCount > 0 diff --git a/NEConversationUIKit/NEConversationUIKit.podspec b/NEConversationUIKit/NEConversationUIKit.podspec index 931edef2..f61228d9 100644 --- a/NEConversationUIKit/NEConversationUIKit.podspec +++ b/NEConversationUIKit/NEConversationUIKit.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'NEConversationUIKit' - s.version = '9.6.0' + s.version = '9.6.1' s.summary = 'Netease XKit' # This description is used to generate tags and improve search results. diff --git a/NEConversationUIKit/NEConversationUIKit/Classes/Conversation/Controller/NEBaseConversationSearchController.swift b/NEConversationUIKit/NEConversationUIKit/Classes/Conversation/Controller/NEBaseConversationSearchController.swift index badacc99..63af2702 100644 --- a/NEConversationUIKit/NEConversationUIKit/Classes/Conversation/Controller/NEBaseConversationSearchController.swift +++ b/NEConversationUIKit/NEConversationUIKit/Classes/Conversation/Controller/NEBaseConversationSearchController.swift @@ -146,19 +146,21 @@ open class NEBaseConversationSearchController: NEBaseConversationNavigationContr open func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { - let cell = tableView.dequeueReusableCell( + if let cell = tableView.dequeueReusableCell( withIdentifier: "\(NSStringFromClass(NEBaseConversationSearchCell.self))", for: indexPath - ) as! NEBaseConversationSearchCell - if indexPath.section == 0 { - cell.searchModel = viewModel.searchResult?.friend[indexPath.row] - } else if indexPath.section == 1 { - cell.searchModel = viewModel.searchResult?.contactGroup[indexPath.row] - } else { - cell.searchModel = viewModel.searchResult?.seniorGroup[indexPath.row] + ) as? NEBaseConversationSearchCell { + if indexPath.section == 0 { + cell.searchModel = viewModel.searchResult?.friend[indexPath.row] + } else if indexPath.section == 1 { + cell.searchModel = viewModel.searchResult?.contactGroup[indexPath.row] + } else { + cell.searchModel = viewModel.searchResult?.seniorGroup[indexPath.row] + } + cell.searchText = searchStr + return cell } - cell.searchText = searchStr - return cell + return NEBaseConversationListCell() } open func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { diff --git a/NEConversationUIKit/NEConversationUIKit/Classes/FunUI/Controller/FunConversationSearchController.swift b/NEConversationUIKit/NEConversationUIKit/Classes/FunUI/Controller/FunConversationSearchController.swift index fe6d6b44..2d405825 100644 --- a/NEConversationUIKit/NEConversationUIKit/Classes/FunUI/Controller/FunConversationSearchController.swift +++ b/NEConversationUIKit/NEConversationUIKit/Classes/FunUI/Controller/FunConversationSearchController.swift @@ -63,11 +63,11 @@ open class FunConversationSearchController: NEBaseConversationSearchController { ]) tableView.register( FunConversationSearchCell.self, - forCellReuseIdentifier: "\(NSStringFromClass(FunConversationSearchCell.self))" + forCellReuseIdentifier: "\(NSStringFromClass(NEBaseConversationSearchCell.self))" ) tableView.register( FunSearchSessionHeaderView.self, - forHeaderFooterViewReuseIdentifier: "\(NSStringFromClass(FunSearchSessionHeaderView.self))" + forHeaderFooterViewReuseIdentifier: "\(NSStringFromClass(SearchSessionBaseView.self))" ) tableView.backgroundColor = .funConversationBackgroundColor if #available(iOS 15.0, *) { @@ -78,28 +78,11 @@ open class FunConversationSearchController: NEBaseConversationSearchController { // MARK: UITableViewDelegate, UITableViewDataSource -// override open func tableView(_ tableView: UITableView, -// cellForRowAt indexPath: IndexPath) -> UITableViewCell { -// let cell = tableView.dequeueReusableCell( -// withIdentifier: "\(NSStringFromClass(FunConversationSearchCell.self))", -// for: indexPath -// ) as! FunConversationSearchCell -// if indexPath.section == 0 { -// cell.searchModel = viewModel.searchResult?.friend[indexPath.row] -// } else if indexPath.section == 1 { -// cell.searchModel = viewModel.searchResult?.contactGroup[indexPath.row] -// } else { -// cell.searchModel = viewModel.searchResult?.seniorGroup[indexPath.row] -// } -// cell.searchText = searchStr -// return cell -// } - override open func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { let sectionView = tableView .dequeueReusableHeaderFooterView( - withIdentifier: "\(NSStringFromClass(FunSearchSessionHeaderView.self))" + withIdentifier: "\(NSStringFromClass(SearchSessionBaseView.self))" ) as! FunSearchSessionHeaderView sectionView.title.textColor = .funConversationSearchHeaderViewTitleColor sectionView.bottomLine.backgroundColor = .funConversationLineBorderColor diff --git a/NEConversationUIKit/NEConversationUIKit/Classes/NormalUI/Controller/ConversationSearchController.swift b/NEConversationUIKit/NEConversationUIKit/Classes/NormalUI/Controller/ConversationSearchController.swift index b98d095d..e1240c5a 100644 --- a/NEConversationUIKit/NEConversationUIKit/Classes/NormalUI/Controller/ConversationSearchController.swift +++ b/NEConversationUIKit/NEConversationUIKit/Classes/NormalUI/Controller/ConversationSearchController.swift @@ -59,11 +59,11 @@ open class ConversationSearchController: NEBaseConversationSearchController { ]) tableView.register( ConversationSearchCell.self, - forCellReuseIdentifier: "\(NSStringFromClass(ConversationSearchCell.self))" + forCellReuseIdentifier: "\(NSStringFromClass(NEBaseConversationSearchCell.self))" ) tableView.register( SearchSessionHeaderView.self, - forHeaderFooterViewReuseIdentifier: "\(NSStringFromClass(SearchSessionHeaderView.self))" + forHeaderFooterViewReuseIdentifier: "\(NSStringFromClass(SearchSessionBaseView.self))" ) } } diff --git a/NETeamUIKit/NETeamUIKit.podspec b/NETeamUIKit/NETeamUIKit.podspec index ec446186..a0b89457 100644 --- a/NETeamUIKit/NETeamUIKit.podspec +++ b/NETeamUIKit/NETeamUIKit.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'NETeamUIKit' - s.version = '9.6.0' + s.version = '9.6.1' s.summary = 'Netease XKit' # This description is used to generate tags and improve search results. diff --git a/NETeamUIKit/NETeamUIKit/Classes/FunUI/Controller/FunTeamMembersController.swift b/NETeamUIKit/NETeamUIKit/Classes/FunUI/Controller/FunTeamMembersController.swift index cb3683fc..7e4ad1a8 100644 --- a/NETeamUIKit/NETeamUIKit/Classes/FunUI/Controller/FunTeamMembersController.swift +++ b/NETeamUIKit/NETeamUIKit/Classes/FunUI/Controller/FunTeamMembersController.swift @@ -20,7 +20,7 @@ open class FunTeamMembersController: NEBaseTeamMembersController { NSLayoutConstraint.activate([ searchGrayBackView.leftAnchor.constraint(equalTo: view.leftAnchor), searchGrayBackView.rightAnchor.constraint(equalTo: view.rightAnchor), - searchGrayBackView.topAnchor.constraint(equalTo: customNavigationView.bottomAnchor), + searchGrayBackView.topAnchor.constraint(equalTo: view.topAnchor, constant: topConstant), searchGrayBackView.bottomAnchor.constraint(equalTo: contentTable.topAnchor), ]) back.backgroundColor = UIColor.white diff --git a/NETeamUIKit/NETeamUIKit/Classes/Setting/NEBaseTeamMembersController.swift b/NETeamUIKit/NETeamUIKit/Classes/Setting/NEBaseTeamMembersController.swift index eccc9f32..3d0383ae 100644 --- a/NETeamUIKit/NETeamUIKit/Classes/Setting/NEBaseTeamMembersController.swift +++ b/NETeamUIKit/NETeamUIKit/Classes/Setting/NEBaseTeamMembersController.swift @@ -103,7 +103,7 @@ open class NEBaseTeamMembersController: NEBaseViewController, UITableViewDelegat view.addSubview(back) NSLayoutConstraint.activate([ - back.topAnchor.constraint(equalTo: view.topAnchor, constant: 4.0 + NEConstant.navigationAndStatusHeight), + back.topAnchor.constraint(equalTo: view.topAnchor, constant: 8.0 + topConstant), back.leftAnchor.constraint(equalTo: view.leftAnchor, constant: 20), back.rightAnchor.constraint(equalTo: view.rightAnchor, constant: -20), back.heightAnchor.constraint(equalToConstant: 32),