Commit 76a77d75 authored by yqz's avatar yqz

隐私空间删除弹窗

parent 421ffc3c
{
"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
}
}
......@@ -218,12 +218,21 @@ class PMShowImgVideoController: BaseViewController {
}
}
// 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()
}
self.view.hideBlur()
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{
// DelCallBlock()
// }
......
......@@ -126,12 +126,22 @@ class SecretViewController: BaseViewController {
self.bottomm.state = .add
}
// 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 {
DelCallBlock()
}
alert.dismiss(animated: true)
})
let alert = PMSecretHintsAlert()
self.view.showBlur()
alert.show { idx in
if idx == 1 {
DelCallBlock()
}
self.view.hideBlur()
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{
// DelCallBlock()
// }
......
//
// 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)
}
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment