Commit 23111374 authored by Steven杜宇's avatar Steven杜宇

// AI

parent 7b1e46ad
...@@ -215,6 +215,22 @@ extension AppDelegate { ...@@ -215,6 +215,22 @@ extension AppDelegate {
let v2 = YHNavigationController(rootVC: YHAIViewController()) let v2 = YHNavigationController(rootVC: YHAIViewController())
let v3 = YHNavigationController(rootVC:YHCommunityViewController()) let v3 = YHNavigationController(rootVC:YHCommunityViewController())
let v4 = YHNavigationController(rootVC:YHMyViewController()) let v4 = YHNavigationController(rootVC:YHMyViewController())
tabBarController.shouldHijackHandler = {
[weak self] tabBarController, viewController, index in
guard let self = self else { return false}
if index == 2 {
return true
}
return false
}
tabBarController.didHijackHandler = {
[weak self] tabBarController, viewController, index in
guard let self = self else { return }
if index == 2 {
let vc = YHAIViewController()
UIViewController.current?.navigationController?.pushViewController(vc)
}
}
v0.tabBarItem = ESTabBarItem.init(YHHomeLottieAnimateContentView(),title: "首页", image: UIImage(named: "home"), selectedImage: UIImage(named: "home_1")) v0.tabBarItem = ESTabBarItem.init(YHHomeLottieAnimateContentView(),title: "首页", image: UIImage(named: "home"), selectedImage: UIImage(named: "home_1"))
......
...@@ -76,6 +76,7 @@ class YHTabBarViewController: ESTabBarController { ...@@ -76,6 +76,7 @@ class YHTabBarViewController: ESTabBarController {
NotificationCenter.default.addObserver(self, selector: #selector(clearFriendTabBadge), name: YhConstant.YhNotification.didMarkAllMessagesReadedNotifiction, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(clearFriendTabBadge), name: YhConstant.YhNotification.didMarkAllMessagesReadedNotifiction, object: nil)
} }
@objc func getTotalUnreadMsgCount() { @objc func getTotalUnreadMsgCount() {
......
...@@ -22,6 +22,7 @@ class YHAITabBarItemContentView: ESTabBarItemContentView { ...@@ -22,6 +22,7 @@ class YHAITabBarItemContentView: ESTabBarItemContentView {
super.init(frame: frame) super.init(frame: frame)
self.removeSubviews() self.removeSubviews()
self.addSubview(iconImgView) self.addSubview(iconImgView)
iconImgView.snp.makeConstraints { make in iconImgView.snp.makeConstraints { make in
make.width.height.equalTo(74.0) make.width.height.equalTo(74.0)
make.bottom.equalTo(0) make.bottom.equalTo(0)
......
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