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
023cdbb6
authored
May 26, 2025
by
pidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改一些可能内存泄漏的点
parent
0306160c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FunctionViewHelper/FUSLiveChatDataSourceHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/FUSLiveFunctionView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/HeadView/LiveUserListView/FUSLiveHeaderUserListView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FunctionViewHelper/FUSLiveChatDataSourceHelper.m
View file @
023cdbb6
...
@@ -1196,9 +1196,9 @@
...
@@ -1196,9 +1196,9 @@
NSMutableAttributedString
*
contentAttr
=
[[
NSMutableAttributedString
alloc
]
init
];
NSMutableAttributedString
*
contentAttr
=
[[
NSMutableAttributedString
alloc
]
init
];
if
(
atAttr
.
length
)
{
if
(
atAttr
.
length
)
{
[
contentAttr
appendAttributedString
:
atAttr
];
[
contentAttr
appendAttributedString
:
atAttr
];
[
contentAttr
appendAttributedString
:[
s
elf
createAttributedStringForString
:
@" : "
]];
[
contentAttr
appendAttributedString
:[
weakS
elf
createAttributedStringForString
:
@" : "
]];
}
else
if
(
bulletModel
.
barrageType
==
FUSbarrageTypeNormal
)
{
}
else
if
(
bulletModel
.
barrageType
==
FUSbarrageTypeNormal
)
{
[
nickNameAttr
appendAttributedString
:[
s
elf
createAttributedStringForString
:
@" : "
]];
[
nickNameAttr
appendAttributedString
:[
weakS
elf
createAttributedStringForString
:
@" : "
]];
}
}
[
contentAttr
appendAttributedString
:
bulletAttr
];
[
contentAttr
appendAttributedString
:
bulletAttr
];
...
@@ -1519,6 +1519,7 @@
...
@@ -1519,6 +1519,7 @@
messageModel
.
realLevel
=
[
jsonDict
[
@"user"
][
@"realLevel"
]
description
];
messageModel
.
realLevel
=
[
jsonDict
[
@"user"
][
@"realLevel"
]
description
];
FUSLogVerbose
(
@"收到消息:%@"
,
[
messageModel
fus_getDictionary
]);
FUSLogVerbose
(
@"收到消息:%@"
,
[
messageModel
fus_getDictionary
]);
// 解析出富文本
// 解析出富文本
[
self
transformModelIntoAttributedString
:
messageModel
complete
:
^
(
NSMutableAttributedString
*
attr
,
CGRect
rect
)
{
[
self
transformModelIntoAttributedString
:
messageModel
complete
:
^
(
NSMutableAttributedString
*
attr
,
CGRect
rect
)
{
...
@@ -1756,12 +1757,11 @@
...
@@ -1756,12 +1757,11 @@
-
(
void
)
fus_updateMessageWithModel
:
(
FUSLiveChatModel
*
)
model
{
-
(
void
)
fus_updateMessageWithModel
:
(
FUSLiveChatModel
*
)
model
{
__weak
typeof
(
self
)
weakSelf
=
self
;
for
(
int
i
=
0
;
i
<
_dataSource
.
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
_dataSource
.
count
;
i
++
)
{
FUSLiveChatModel
*
objModel
=
[
_dataSource
objectAtIndex
:
i
];
FUSLiveChatModel
*
objModel
=
[
_dataSource
objectAtIndex
:
i
];
if
([
model
.
ID
isEqualToString
:
objModel
.
ID
])
{
if
([
model
.
ID
isEqualToString
:
objModel
.
ID
])
{
[
self
transformModelIntoAttributedString
:
model
complete
:
^
(
NSMutableAttributedString
*
attr
,
CGRect
rect
)
{
__weak
typeof
(
self
)
weakSelf
=
self
;
[
self
transformModelIntoAttributedString
:
model
complete
:
^
(
NSMutableAttributedString
*
attr
,
CGRect
rect
)
{
if
(
attr
)
[
weakSelf
.
cellStringDict
setObject
:
attr
forKey
:
model
.
ID
];
if
(
attr
)
[
weakSelf
.
cellStringDict
setObject
:
attr
forKey
:
model
.
ID
];
CGSize
size
=
rect
.
size
;
CGSize
size
=
rect
.
size
;
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/FUSLiveFunctionView.m
View file @
023cdbb6
...
@@ -838,10 +838,10 @@ UIGestureRecognizerDelegate
...
@@ -838,10 +838,10 @@ UIGestureRecognizerDelegate
[
FUSDeviceHelper
fus_checkOldIPhoneDeviceHandler
:
^
(
BOOL
oldDev
)
{
[
FUSDeviceHelper
fus_checkOldIPhoneDeviceHandler
:
^
(
BOOL
oldDev
)
{
if
(
oldDev
)
{
if
(
oldDev
)
{
_chatBGImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
_
chatViewBgView
.
y
,
UIView
.
fus_screenW
,
UIView
.
fus_screenH
-
_chatViewBgView
.
y
)];
self
.
chatBGImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
chatViewBgView
.
y
,
UIView
.
fus_screenW
,
UIView
.
fus_screenH
-
_chatViewBgView
.
y
)];
_
chatBGImageView
.
image
=
[
FUSShowRoomCenterBunble
imageNamed
:
@"live_chat_tableView_bg"
];
self
.
chatBGImageView
.
image
=
[
FUSShowRoomCenterBunble
imageNamed
:
@"live_chat_tableView_bg"
];
_
chatBGImageView
.
contentMode
=
UIViewContentModeScaleToFill
;
self
.
chatBGImageView
.
contentMode
=
UIViewContentModeScaleToFill
;
[[
self
fus_viewWithLayer
:
FUSLiveFunctionLayerRoomInfos
]
addSubview
:
_
chatBGImageView
];
[[
self
fus_viewWithLayer
:
FUSLiveFunctionLayerRoomInfos
]
addSubview
:
self
.
chatBGImageView
];
}
}
}];
}];
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/HeadView/LiveUserListView/FUSLiveHeaderUserListView.m
View file @
023cdbb6
...
@@ -179,7 +179,7 @@ typedef enum : NSUInteger {
...
@@ -179,7 +179,7 @@ typedef enum : NSUInteger {
-
(
FUSLHULDataUpdateFinishHandler
)
fus_updateUI
{
-
(
FUSLHULDataUpdateFinishHandler
)
fus_updateUI
{
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
return
^
(
FUSLiveHeaderUserListChangedModel
*
_Nullable
changedModel
,
void
(
^
_Nullable
uireloadFinished
)(
void
))
{
return
^
(
FUSLiveHeaderUserListChangedModel
*
_Nullable
changedModel
,
void
(
^
_Nullable
uireloadFinished
)(
void
))
{
[
s
elf
.
userCountBtn
setTitle
:
@
(
weakSelf
.
userListViewModel
.
totalRealUserCount
).
stringValue
forState
:
UIControlStateNormal
];
[
weakS
elf
.
userCountBtn
setTitle
:
@
(
weakSelf
.
userListViewModel
.
totalRealUserCount
).
stringValue
forState
:
UIControlStateNormal
];
if
(
changedModel
==
nil
)
{
if
(
changedModel
==
nil
)
{
if
(
uireloadFinished
)
{
if
(
uireloadFinished
)
{
uireloadFinished
();
uireloadFinished
();
...
...
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