Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PhoneManager
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yang
PhoneManager
Commits
76a77d75
Commit
76a77d75
authored
May 23, 2025
by
yqz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐私空间删除弹窗
parent
421ffc3c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
193 additions
and
9 deletions
+193
-9
Contents.json
...assets/Hints/pm-screct-remove-hint.imageset/Contents.json
+22
-0
Frame@2x.png
...cassets/Hints/pm-screct-remove-hint.imageset/Frame@2x.png
+0
-0
Frame@3x.png
...cassets/Hints/pm-screct-remove-hint.imageset/Frame@3x.png
+0
-0
PMShowImgVideoController.swift
...eManager/Class/Page/Secret/PMShowImgVideoController.swift
+12
-3
SecretViewController.swift
PhoneManager/Class/Page/Secret/SecretViewController.swift
+16
-6
PMSecretHintsAlert.swift
PhoneManager/Class/Page/Secret/View/PMSecretHintsAlert.swift
+32
-0
PMSecretHintsAlert.xib
PhoneManager/Class/Page/Secret/View/PMSecretHintsAlert.xib
+111
-0
No files found.
PhoneManager/Assets.xcassets/Hints/pm-screct-remove-hint.imageset/Contents.json
0 → 100644
View file @
76a77d75
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Frame@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Frame@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
PhoneManager/Assets.xcassets/Hints/pm-screct-remove-hint.imageset/Frame@2x.png
0 → 100644
View file @
76a77d75
3.27 KB
PhoneManager/Assets.xcassets/Hints/pm-screct-remove-hint.imageset/Frame@3x.png
0 → 100644
View file @
76a77d75
5.89 KB
PhoneManager/Class/Page/Secret/PMShowImgVideoController.swift
View file @
76a77d75
...
@@ -218,12 +218,21 @@ class PMShowImgVideoController: BaseViewController {
...
@@ -218,12 +218,21 @@ class PMShowImgVideoController: BaseViewController {
}
}
}
}
// if SettingConfiguration.share.config.removeImg {
// if SettingConfiguration.share.config.removeImg {
PMAlert
(
messsage
:
"These photos or videos will be deleted from your private space"
,
action
:
[
"Cancel"
,
"Delete"
]
,
complate
:
{
alert
,
selectidx
in
let
alert
=
PMSecretHintsAlert
()
if
selectidx
==
1
{
self
.
view
.
showBlur
()
alert
.
show
{
idx
in
if
idx
==
1
{
DelCallBlock
()
DelCallBlock
()
}
}
self
.
view
.
hideBlur
()
alert
.
dismiss
(
animated
:
true
)
alert
.
dismiss
(
animated
:
true
)
})
}
// PMAlert(messsage:"These photos or videos will be deleted from your private space" , action: ["Cancel","Delete"] , complate: { alert, selectidx in
// if selectidx == 1 {
// DelCallBlock()
// }
// alert.dismiss(animated: true)
// })
// }else{
// }else{
// DelCallBlock()
// DelCallBlock()
// }
// }
...
...
PhoneManager/Class/Page/Secret/SecretViewController.swift
View file @
76a77d75
...
@@ -126,12 +126,22 @@ class SecretViewController: BaseViewController {
...
@@ -126,12 +126,22 @@ class SecretViewController: BaseViewController {
self
.
bottomm
.
state
=
.
add
self
.
bottomm
.
state
=
.
add
}
}
// if SettingConfiguration.share.config.removeImg {
// if SettingConfiguration.share.config.removeImg {
PMAlert
(
messsage
:
"These photos or videos will be deleted from your private space"
,
action
:
[
"Cancel"
,
"Delete"
]
,
complate
:
{
alert
,
selectidx
in
if
selectidx
==
1
{
let
alert
=
PMSecretHintsAlert
()
self
.
view
.
showBlur
()
alert
.
show
{
idx
in
if
idx
==
1
{
DelCallBlock
()
DelCallBlock
()
}
}
self
.
view
.
hideBlur
()
alert
.
dismiss
(
animated
:
true
)
alert
.
dismiss
(
animated
:
true
)
})
}
// PMAlert(messsage:"These photos or videos will be deleted from your private space" , action: ["Cancel","Delete"] , complate: { alert, selectidx in
// if selectidx == 1 {
// DelCallBlock()
// }
// alert.dismiss(animated: true)
// })
// }else{
// }else{
// DelCallBlock()
// DelCallBlock()
// }
// }
...
...
PhoneManager/Class/Page/Secret/View/PMSecretHintsAlert.swift
0 → 100644
View file @
76a77d75
//
// PMSecretHintsAlert.swift
// PhoneManager
//
// Created by edy on 2025/5/23.
//
import
UIKit
class
PMSecretHintsAlert
:
UIViewController
{
var
callblock
:((
Int
)
->
Void
)
=
{
idx
in
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
}
@IBAction
func
deleteActions
(
_
sender
:
Any
)
{
callblock
(
1
)
}
@IBAction
func
cancelActions
(
_
sender
:
Any
)
{
callblock
(
0
)
}
func
show
(
_
complate
:
@escaping((Int)
->
Void
))
->
Void
{
self
.
callblock
=
complate
self
.
modalPresentationStyle
=
.
overFullScreen
UIViewController
.
topMostViewController
()?
.
present
(
self
,
animated
:
true
)
}
}
PhoneManager/Class/Page/Secret/View/PMSecretHintsAlert.xib
0 → 100644
View file @
76a77d75
This diff is collapsed.
Click to expand it.
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