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
468db400
authored
Jul 10, 2024
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs
parent
1d35cff3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
198 additions
and
3 deletions
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/BaseVC/FUSBaseViewController.m
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/BaseVC/ScreenShieldView.swift
FuSiLive/Classes/InstantMessaging/View/ToolViews/VideoChat/FunctionViews/FUSVideoChatUserInfoView.m
FuSiLive/Classes/NewLive/Main/View/FunctionView/AudienceListView/UserList/FUSAudienceListView.m
Pods/Pods.xcodeproj/project.pbxproj
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/BaseVC/FUSBaseViewController.m
View file @
468db400
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#import "FUSTalkingData.h"
#import "FUSTalkingData.h"
#import "FUSFoundationBundle.h"
#import "FUSFoundationBundle.h"
#import "FUSFuSiLoadingView.h"
#import "FUSFuSiLoadingView.h"
#import "FUSFoundation/FUSFoundation-Swift.h"
@interface
FUSBaseViewController
()
<
UIGestureRecognizerDelegate
,
UINavigationControllerDelegate
>
@interface
FUSBaseViewController
()
<
UIGestureRecognizerDelegate
,
UINavigationControllerDelegate
>
...
@@ -31,6 +32,15 @@
...
@@ -31,6 +32,15 @@
BOOL
_animated
;
BOOL
_animated
;
}
}
//
//- (void)loadView {
// if (@available(iOS 13.0, *)) {
// self.view = [ScreenShieldView createWithFrame:UIScreen.mainScreen.bounds];
// } else {
// [super loadView];
// }
//}
-
(
UIStatusBarStyle
)
preferredStatusBarStyle
{
-
(
UIStatusBarStyle
)
preferredStatusBarStyle
{
return
UIStatusBarStyleDefault
;
return
UIStatusBarStyleDefault
;
}
}
...
@@ -42,12 +52,18 @@
...
@@ -42,12 +52,18 @@
self
.
navigationController
.
delegate
=
self
;
self
.
navigationController
.
delegate
=
self
;
// 显示状态栏
// 显示状态栏
[[
UIApplication
sharedApplication
]
setStatusBarHidden
:
NO
withAnimation
:
UIStatusBarAnimationFade
];
[[
UIApplication
sharedApplication
]
setStatusBarHidden
:
NO
withAnimation
:
UIStatusBarAnimationFade
];
// // 设置状态栏为白色
// 设置状态栏为黑
[[
UIApplication
sharedApplication
]
setStatusBarStyle
:
UIStatusBarStyleDefault
animated
:
NO
];
[[
UIApplication
sharedApplication
]
setStatusBarStyle
:
UIStatusBarStyleDefault
animated
:
NO
];
[
self
setNeedsStatusBarAppearanceUpdate
];
[
self
setNeedsStatusBarAppearanceUpdate
];
[
self
.
navigationController
.
navigationBar
setShadowImage
:[[
UIImage
alloc
]
init
]];
[
self
.
navigationController
.
navigationBar
setShadowImage
:[[
UIImage
alloc
]
init
]];
[
self
.
navigationController
.
navigationBar
.
subviews
.
firstObject
.
subviews
enumerateObjectsUsingBlock
:
^
(
__kindof
UIView
*
_Nonnull
obj
,
NSUInteger
idx
,
BOOL
*
_Nonnull
stop
)
{
if
([
obj
isKindOfClass
:
NSClassFromString
(
@"_UIBarBackgroundShadowView"
)])
{
obj
.
hidden
=
YES
;
}
}];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
fus_checkStateDidUpdate
)
name
:
FUSConfig
.
sharedInstanced
.
devConfigs
.
appStatusUpdateNotificationKey
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
fus_checkStateDidUpdate
)
name
:
FUSConfig
.
sharedInstanced
.
devConfigs
.
appStatusUpdateNotificationKey
object
:
nil
];
}
}
...
...
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/BaseVC/ScreenShieldView.swift
0 → 100644
View file @
468db400
//
// ScreenShieldView.swift
// Swifty
//
// Created by 王荣庆 on 2019/9/14.
// Copyright © 2019 RyukieSama. All rights reserved.
//
#if !os(macOS)
import
UIKit
@available(iOS 13.0, *)
public
class
ScreenShieldView
:
UIView
{
@objc
public
static
func
create
(
frame
:
CGRect
=
.
zero
)
->
ScreenShieldView
{
return
ScreenShieldView
(
frame
:
frame
)
}
private
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
safeZone
=
makeSecureView
()
??
UIView
()
if
let
sf
=
safeZone
{
addSubview
(
sf
)
let
layoutDefaultLowPriority
=
UILayoutPriority
(
rawValue
:
UILayoutPriority
.
defaultLow
.
rawValue
-
1
)
let
layoutDefaultHighPriority
=
UILayoutPriority
(
rawValue
:
UILayoutPriority
.
defaultHigh
.
rawValue
-
1
)
sf
.
translatesAutoresizingMaskIntoConstraints
=
false
sf
.
setContentHuggingPriority
(
layoutDefaultLowPriority
,
for
:
.
vertical
)
sf
.
setContentHuggingPriority
(
layoutDefaultLowPriority
,
for
:
.
horizontal
)
sf
.
setContentCompressionResistancePriority
(
layoutDefaultHighPriority
,
for
:
.
vertical
)
sf
.
setContentCompressionResistancePriority
(
layoutDefaultHighPriority
,
for
:
.
horizontal
)
let
top
=
NSLayoutConstraint
.
init
(
item
:
sf
,
attribute
:
.
top
,
relatedBy
:
.
equal
,
toItem
:
self
,
attribute
:
.
top
,
multiplier
:
1
,
constant
:
0
)
let
bottom
=
NSLayoutConstraint
.
init
(
item
:
sf
,
attribute
:
.
bottom
,
relatedBy
:
.
equal
,
toItem
:
self
,
attribute
:
.
bottom
,
multiplier
:
1
,
constant
:
0
)
let
leading
=
NSLayoutConstraint
.
init
(
item
:
sf
,
attribute
:
.
leading
,
relatedBy
:
.
equal
,
toItem
:
self
,
attribute
:
.
leading
,
multiplier
:
1
,
constant
:
0
)
let
trailing
=
NSLayoutConstraint
.
init
(
item
:
sf
,
attribute
:
.
trailing
,
relatedBy
:
.
equal
,
toItem
:
self
,
attribute
:
.
trailing
,
multiplier
:
1
,
constant
:
0
)
self
.
addConstraints
([
top
,
bottom
,
leading
,
trailing
])
}
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
public
override
func
addSubview
(
_
view
:
UIView
)
{
guard
let
safe
=
safeZone
,
view
!=
safeZone
else
{
super
.
addSubview
(
view
)
return
}
safe
.
addSubview
(
view
)
}
public
override
func
insertSubview
(
_
view
:
UIView
,
belowSubview
siblingSubview
:
UIView
)
{
guard
let
safe
=
safeZone
,
view
!=
safeZone
else
{
super
.
insertSubview
(
view
,
belowSubview
:
siblingSubview
)
return
}
safe
.
insertSubview
(
view
,
belowSubview
:
siblingSubview
)
}
public
override
func
insertSubview
(
_
view
:
UIView
,
aboveSubview
siblingSubview
:
UIView
)
{
guard
let
safe
=
safeZone
,
view
!=
safeZone
else
{
super
.
insertSubview
(
view
,
aboveSubview
:
siblingSubview
)
return
}
safe
.
insertSubview
(
view
,
aboveSubview
:
siblingSubview
)
}
public
override
func
insertSubview
(
_
view
:
UIView
,
at
index
:
Int
)
{
guard
let
safe
=
safeZone
,
view
!=
safeZone
else
{
super
.
insertSubview
(
view
,
at
:
index
)
return
}
safe
.
insertSubview
(
view
,
at
:
index
)
}
public
override
func
exchangeSubview
(
at
index1
:
Int
,
withSubviewAt
index2
:
Int
)
{
guard
let
safe
=
safeZone
else
{
super
.
exchangeSubview
(
at
:
index1
,
withSubviewAt
:
index2
)
return
}
safe
.
exchangeSubview
(
at
:
index1
,
withSubviewAt
:
index2
)
}
public
override
func
bringSubviewToFront
(
_
view
:
UIView
)
{
guard
let
safe
=
safeZone
,
view
!=
safeZone
else
{
super
.
bringSubviewToFront
(
view
)
return
}
safe
.
bringSubviewToFront
(
view
)
}
public
override
func
sendSubviewToBack
(
_
view
:
UIView
)
{
guard
let
safe
=
safeZone
,
view
!=
safeZone
else
{
super
.
sendSubviewToBack
(
view
)
return
}
safe
.
sendSubviewToBack
(
view
)
}
private
func
makeSecureView
()
->
UIView
?
{
guard
isOSVersionSafe
else
{
return
nil
}
let
field
=
UITextField
()
field
.
isSecureTextEntry
=
true
let
fv
=
field
.
subviews
.
first
fv
?
.
subviews
.
forEach
{
$0
.
removeFromSuperview
()
}
fv
?
.
isUserInteractionEnabled
=
true
let
errorMsg
=
"[ScreenShieldView log] Create safeZone failed!"
#if DEBUG
precondition
(
fv
!=
nil
,
errorMsg
)
#else
print
(
errorMsg
)
#endif
return
fv
}
private
var
safeZone
:
UIView
?
// Some OS version may crash, ignore them before there is a better way.
private
var
unsafeOSVersion
:
[
String
]
{
[
"15.1"
]
}
private
var
osVersion
:
String
{
UIDevice
.
current
.
systemVersion
}
private
var
isOSVersionSafe
:
Bool
{
for
version
in
unsafeOSVersion
{
if
osVersion
.
contains
(
version
)
{
return
false
}
}
return
true
}
}
#endif
FuSiLive/Classes/InstantMessaging/View/ToolViews/VideoChat/FunctionViews/FUSVideoChatUserInfoView.m
View file @
468db400
...
@@ -616,11 +616,13 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
...
@@ -616,11 +616,13 @@ if (@available(iOS 11.0, *)) {height = 80 + UIView.fus_SafeBottom;}\
self
.
secrectBgView
.
hidden
=
NO
;
self
.
secrectBgView
.
hidden
=
NO
;
[
_clearBgView
addSubview
:
_buttomBtnBgView
];
[
_clearBgView
addSubview
:
_buttomBtnBgView
];
[
_clearBgView
addSubview
:
_roomControlView
];
[
_clearBgView
addSubview
:
_roomControlView
];
_bgView
.
hidden
=
YES
;
[
self
fus_layoutSubviews
];
[
self
fus_layoutSubviews
];
}
else
{
}
else
{
_secrectBgView
.
hidden
=
YES
;
_secrectBgView
.
hidden
=
YES
;
_secrectBgImgView
.
hidden
=
YES
;
_secrectBgImgView
.
hidden
=
YES
;
_bgView
.
hidden
=
NO
;
[
self
fus_layoutSubviews
];
[
self
fus_layoutSubviews
];
model
.
uid
=
model
.
realUid
;
model
.
uid
=
model
.
realUid
;
...
...
FuSiLive/Classes/NewLive/Main/View/FunctionView/AudienceListView/UserList/FUSAudienceListView.m
View file @
468db400
...
@@ -135,7 +135,11 @@
...
@@ -135,7 +135,11 @@
}
}
-
(
void
)
fus_clicOpenVipAction
:
(
UIButton
*
)
sender
{
-
(
void
)
fus_clicOpenVipAction
:
(
UIButton
*
)
sender
{
//TODO:跳转到VIP: added By Pidan
FUSWKWebViewController
*
wkwVC
=
[[
FUSWKWebViewController
alloc
]
init
];
wkwVC
.
shouldShowShareBtn
=
NO
;
wkwVC
.
webUrlString
=
[
FUSCacheDataShare
shareStore
].
settingInitDataModel
.
fusiConfig
.
vipOpenAddress
;
[[
UIViewController
fus_topViewController
].
navigationController
pushViewController
:
wkwVC
animated
:
YES
];
}
}
#pragma mark - UITableViewDelegate, UITableViewDataSource
#pragma mark - UITableViewDelegate, UITableViewDataSource
...
@@ -201,7 +205,12 @@
...
@@ -201,7 +205,12 @@
NSInteger
total
=
[
dataDict
[
@"total"
]
integerValue
];
NSInteger
total
=
[
dataDict
[
@"total"
]
integerValue
];
self
.
totalUserChangedHandler
(
total
);
self
.
totalUserChangedHandler
(
total
);
}
}
[
self
.
tableView
.
mj_header
endRefreshing
];
if
(
users
.
count
==
0
)
{
[
self
.
tableView
.
mj_footer
endRefreshingWithNoMoreData
];
}
else
{
[
self
.
tableView
.
mj_footer
endRefreshing
];
}
}
failure
:^
(
NSDictionary
*
_Nullable
dataDict
,
int
code
)
{
}
failure
:^
(
NSDictionary
*
_Nullable
dataDict
,
int
code
)
{
[
FUSDialogView
fus_showDialog
:
dataDict
[
@"msg"
]];
[
FUSDialogView
fus_showDialog
:
dataDict
[
@"msg"
]];
}];
}];
...
...
Pods/Pods.xcodeproj/project.pbxproj
View file @
468db400
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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