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
548fe4bf
Commit
548fe4bf
authored
May 07, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
启动时的协议 同步
parent
6c26605f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
YHStartPageViewController.swift
...lasses/Modules/Home(首页)/C/YHStartPageViewController.swift
+1
-1
YHCommonAlertView.swift
...Service(服务中心)/MySignature(我的签字)/V/YHCommonAlertView.swift
+7
-2
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHStartPageViewController.swift
View file @
548fe4bf
...
...
@@ -117,7 +117,7 @@ private extension YHStartPageViewController {
agreeAlertView
.
cancelBlock
=
{
//点击了取消按钮
YHCommonAlertView
.
show
(
""
,
"确认退出银河港生活App?"
,
"退出"
,
"继续使用"
)
{
YHCommonAlertView
.
show
(
""
,
"确认退出银河港生活App?"
,
"退出"
,
"继续使用"
,
fullGuestureEnable
:
false
)
{
//退出
exit
(
0
)
}
callBack
:
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MySignature(我的签字)/V/YHCommonAlertView.swift
View file @
548fe4bf
...
...
@@ -19,11 +19,14 @@ class YHCommonAlertView: UIView {
var
agreeButton
:
UIButton
!
var
disAgressButton
:
UIButton
!
static
func
show
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
,
cancelCallBack
:
(()
->
Void
)?
=
nil
,
callBack
:
@escaping
(()
->
Void
))
{
var
isFullGuestureEnabel
:
Bool
=
true
//view响应全局手势 默认响应
static
func
show
(
_
title
:
String
?
=
nil
,
_
message
:
String
?
=
nil
,
_
leftButtonString
:
String
?
=
nil
,
_
rightButtonString
:
String
?
=
nil
,
fullGuestureEnable
:
Bool
=
true
,
cancelCallBack
:
(()
->
Void
)?
=
nil
,
callBack
:
@escaping
(()
->
Void
))
{
let
view
=
YHCommonAlertView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
agreeBlock
=
callBack
view
.
cancelBlcok
=
cancelCallBack
view
.
setContent
(
title
,
message
,
leftButtonString
,
rightButtonString
)
view
.
isFullGuestureEnabel
=
fullGuestureEnable
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
...
...
@@ -179,7 +182,9 @@ class YHCommonAlertView: UIView {
@objc
private
func
handleTap
(
_
sender
:
AnyObject
?)
{
print
(
"处理点击手势"
)
dismiss
()
if
isFullGuestureEnabel
{
dismiss
()
}
}
@objc
func
disagree
()
{
...
...
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