Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
23111374
Commit
23111374
authored
Nov 26, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
7b1e46ad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+16
-0
YHTabBarViewController.swift
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
+1
-0
YHAITabBarItemContentView.swift
galaxy/galaxy/Classes/Base/V/YHAITabBarItemContentView.swift
+1
-0
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
23111374
...
...
@@ -215,6 +215,22 @@ extension AppDelegate {
let
v2
=
YHNavigationController
(
rootVC
:
YHAIViewController
())
let
v3
=
YHNavigationController
(
rootVC
:
YHCommunityViewController
())
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"
))
...
...
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
View file @
23111374
...
...
@@ -76,6 +76,7 @@ class YHTabBarViewController: ESTabBarController {
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearFriendTabBadge
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
}
@objc
func
getTotalUnreadMsgCount
()
{
...
...
galaxy/galaxy/Classes/Base/V/YHAITabBarItemContentView.swift
View file @
23111374
...
...
@@ -22,6 +22,7 @@ class YHAITabBarItemContentView: ESTabBarItemContentView {
super
.
init
(
frame
:
frame
)
self
.
removeSubviews
()
self
.
addSubview
(
iconImgView
)
iconImgView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
74.0
)
make
.
bottom
.
equalTo
(
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment