iOS 系统防止恶意截屏的实现方案 监听截屏事件 通过 UIApplication.userDidTakeScreenshotNotification 监听截屏动作。在回调中可执行敏感内容隐藏或触发安全警报。 NotificationCenter.default.addObserver( forName: UIApplication.userDidTakeScreenshotNotification, object: nil, queue: .main ) { _ in // 隐藏敏感内容或弹出警告 } 动态内容保护 使用 UITextField 或 UITextView 的 secureT...