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
495fe4f0
Commit
495fe4f0
authored
Jul 04, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理模拟器上能运行 版本
parent
cc926991
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
YHOneKeyLoginManager.swift
...sses/Modules/AutoLogin(一键登录)/M/YHOneKeyLoginManager.swift
+17
-4
ATAuthSDK_D
...toLogin(一键登录)/framework/ATAuthSDK_D.framework/ATAuthSDK_D
+0
-0
ATAuthSDK_D0
...oLogin(一键登录)/framework/ATAuthSDK_D.framework/ATAuthSDK_D0
+0
-0
YHAddFriendCardCell.swift
...Classes/Modules/Community(社区)/V/YHAddFriendCardCell.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/AutoLogin(一键登录)/M/YHOneKeyLoginManager.swift
View file @
495fe4f0
...
...
@@ -224,6 +224,11 @@ extension YHOneKeyLoginManager {
}
}
func
isRunningOnSimulator
()
->
Bool
{
return
ProcessInfo
.
processInfo
.
environment
[
"SIMULATOR_MODEL_IDENTIFIER"
]
!=
nil
}
func
createLoginUIModel
()
->
TXCustomModel
{
let
model
=
TXCustomModel
()
...
...
@@ -336,7 +341,7 @@ extension YHOneKeyLoginManager {
let
alertBtnWith
=
alertWidth
-
16.0
*
2
let
alertBtnHeight
=
45.0
var
currentTop
=
0.0
var
currentTop
:
CGFloat
=
0.0
model
.
privacyAlertTitleFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
0
,
15
,
frame
.
size
.
width
,
titleHeight
)
...
...
@@ -350,18 +355,26 @@ extension YHOneKeyLoginManager {
attributes
:
attributes
,
context
:
nil
)
.
size
let
textHeight
=
ceill
(
boundingSize
.
height
)
let
textHeight
=
ceill
(
Float80
(
boundingSize
.
height
)
)
model
.
privacyAlertPrivacyContentFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
21.0
,
15
+
24
+
33
,
alertContentWidth
,
textHeight
)
return
CGRectMake
(
21.0
,
15
.0
+
24.0
+
33.0
,
alertContentWidth
,
CGFloat
(
textHeight
)
)
}
currentTop
+=
33
+
textHeight
currentTop
=
currentTop
+
33.0
+
Double
(
textHeight
)
#if targetEnvironment(simulator)
// 这段代码只会在模拟器上编译
print
(
"This is running on a simulator."
)
#else
// 这段代码只会在真机上编译
print
(
"This is running on a physical device."
)
model
.
privacyAlertButtonFrameBlock
=
{
screenSize
,
superViewSize
,
frame
in
return
CGRectMake
(
16
,
15
+
24
+
33
+
textHeight
+
36.0
,
alertBtnWith
,
alertBtnHeight
)
}
#endif
currentTop
+=
36.0
+
alertBtnHeight
let
totalHeight
=
currentTop
+
16.0
model
.
privacyAlertFrameBlock
=
{
...
...
galaxy/galaxy/Classes/Modules/AutoLogin(一键登录)/framework/ATAuthSDK_D.framework/ATAuthSDK_D
View file @
495fe4f0
No preview for this file type
galaxy/galaxy/Classes/Modules/AutoLogin(一键登录)/framework/ATAuthSDK_D.framework/ATAuthSDK_D0
0 → 100755
View file @
495fe4f0
File added
galaxy/galaxy/Classes/Modules/Community(社区)/V/YHAddFriendCardCell.swift
View file @
495fe4f0
...
...
@@ -301,8 +301,8 @@ class YHAddFriendCardCell: UITableViewCell {
attributes
:
attributes
,
context
:
nil
)
.
size
let
textHeight
=
ceill
(
boundingSize
.
height
)
return
textHeight
let
textHeight
=
ceill
(
Float80
(
boundingSize
.
height
)
)
return
CGFloat
(
textHeight
)
}
}
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