我可以使用这个删除剪切、复制、粘贴、选择、全选
override public func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
if action == #selector(copy(_:)) || action == #selector(paste(_:)) || action == #selector(selectAll(_:)) || action == #selector(cut(_:))
{
return false
}
return super.canPerformAction(action, withSender: sender)
}
Run Code Online (Sandbox Code Playgroud)
但我无法删除查找和共享
谁能建议我如何删除它?
以下是我当前的 AVRecorder 设置,我想改进它以获得最高质量的录音。
let settings = [
AVFormatIDKey: Int(kAudioFormatMPEG4AAC),
AVSampleRateKey: 44100,
AVNumberOfChannelsKey: 2,
AVEncoderAudioQualityKey: AVAudioQuality.max.rawValue
]
Run Code Online (Sandbox Code Playgroud)