Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c4cb46f2
authored
Jul 08, 2025
by
pidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页推荐关注的UI
parent
a8d27260
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/HomePage/View/Main/View/Other/FUSRecommendedHosterView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/HomePage/View/Main/View/Other/FUSRecommendedHosterView.m
View file @
c4cb46f2
...
@@ -129,24 +129,24 @@
...
@@ -129,24 +129,24 @@
// 搭建标题 View
// 搭建标题 View
-
(
void
)
initTitleView
-
(
void
)
initTitleView
{
{
_titleView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
self
.
width
,
1
6
8
+
UIView
.
fus_SafeTop
)];
_titleView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
self
.
width
,
1
4
8
+
UIView
.
fus_SafeTop
)];
[
self
addSubview
:
_titleView
];
[
self
addSubview
:
_titleView
];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
30
+
UIView
.
fus_SafeTop
,
183
,
43
)];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
10
+
UIView
.
fus_SafeTop
,
84
,
43
)];
imageView
.
centerX
=
_titleView
.
width
/
2
.
0
;
imageView
.
centerX
=
_titleView
.
width
/
2
.
0
;
imageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
imageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
imageView
.
image
=
[
UIImage
com_ImageNamed
:
@"common_push_notice_img
"
];
imageView
.
image
=
[
UIImage
fus_ImageNamed
:
@"fus_common_navi_title_logo
"
];
[
_titleView
addSubview
:
imageView
];
[
_titleView
addSubview
:
imageView
];
UILabel
*
titleLabel
=
[[
UILabel
alloc
]
init
];
UILabel
*
titleLabel
=
[[
UILabel
alloc
]
init
];
titleLabel
.
font
=
[
UIFont
fus_themeMediumFont
:
13
];
titleLabel
.
font
=
[
UIFont
fus_themeMediumFont
:
13
];
titleLabel
.
numberOfLines
=
0
;
titleLabel
.
numberOfLines
=
0
;
titleLabel
.
textColor
=
[
UIColor
colorWithWhite
:
1
alpha
:
0
.
8
];
titleLabel
.
textColor
=
[
UIColor
fus_textColorRich
];
titleLabel
.
text
=
[
NSString
stringWithFormat
:[
NSString
fus_localString
:
@"%@的尊贵新玩家,欢迎远道而来。
\n
主播们在等你,希望你关注她们。"
],
FUSConfig
.
sharedInstanced
.
appConfigs
.
appName
];
titleLabel
.
text
=
[
NSString
stringWithFormat
:[
NSString
fus_localString
:
@"%@的尊贵新玩家,欢迎远道而来。
\n
主播们在等你,希望你关注她们。"
],
FUSConfig
.
sharedInstanced
.
appConfigs
.
appName
];
titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
CGSize
size
=
[
titleLabel
.
text
sizeWithFont
:
titleLabel
.
font
maxWidth
:
UIView
.
fus_screenW
-
120
maxHeight
:
MAXFLOAT
];
CGSize
size
=
[
titleLabel
.
text
sizeWithFont
:
titleLabel
.
font
maxWidth
:
UIView
.
fus_screenW
-
120
maxHeight
:
MAXFLOAT
];
titleLabel
.
size
=
size
;
titleLabel
.
size
=
size
;
titleLabel
.
y
=
imageView
.
bottom
+
2
6
;
titleLabel
.
y
=
imageView
.
bottom
+
1
6
;
titleLabel
.
centerX
=
imageView
.
centerX
;
titleLabel
.
centerX
=
imageView
.
centerX
;
[
_titleView
addSubview
:
titleLabel
];
[
_titleView
addSubview
:
titleLabel
];
}
}
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
_followBtn
=
[
FUSStyleButton
buttonWithType
:
UIButtonTypeCustom
];
_followBtn
=
[
FUSStyleButton
buttonWithType
:
UIButtonTypeCustom
];
// _followBtn.style = FUSButtonStyleGradient;
// _followBtn.style = FUSButtonStyleGradient;
_followBtn
.
backgroundColor
=
[
UIColor
colorWithHex
:
@"#02F2F2"
];
_followBtn
.
backgroundColor
=
[
UIColor
colorWithHex
:
@"#02F2F2"
];
_followBtn
.
frame
=
CGRectMake
(
0
,
_collectionView
.
height
+
18
,
281
,
40
);
_followBtn
.
frame
=
CGRectMake
(
0
,
_collectionView
.
bottom
+
18
,
281
,
40
);
_followBtn
.
centerX
=
self
.
width
/
2
.
0
;
_followBtn
.
centerX
=
self
.
width
/
2
.
0
;
// _followBtn.layer.cornerRadius = _followBtn.height / 2.0;
// _followBtn.layer.cornerRadius = _followBtn.height / 2.0;
// _followBtn.layer.masksToBounds = YES;
// _followBtn.layer.masksToBounds = YES;
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
-
(
void
)
layoutSubviews
{
-
(
void
)
layoutSubviews
{
[
super
layoutSubviews
];
[
super
layoutSubviews
];
_followBtn
.
y
=
_collectionView
.
height
+
18
;
_followBtn
.
y
=
_collectionView
.
bottom
+
18
;
[
self
bringSubviewToFront
:
_followBtn
];
[
self
bringSubviewToFront
:
_followBtn
];
}
}
...
...
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